Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/tinywebgallery-wrapper/tinywebgallery-wrapper.php+24
Methods with the same name as their class will not be constructors in a future version of PHP; twgWrapper has a deprecated constructor
Server metrics [RAM: ▼1.77MB] [CPU: ▼217.31ms] Passed 4 tests
Analyzing server-side resources used by TinyWebGallery wrapper
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.86 ▼0.86 | 10.21 ▼6.68 |
Dashboard /wp-admin | 1.88 ▼1.18 | 4.96 ▼36.22 |
Posts /wp-admin/edit.php | 1.88 ▼1.23 | 3.62 ▼30.16 |
Add New Post /wp-admin/post-new.php | 1.88 ▼3.56 | 3.92 ▼781.59 |
Media Library /wp-admin/upload.php | 1.88 ▼1.12 | 3.88 ▼21.27 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 2 new options
New WordPress options |
---|
twgWrapperAdminOptions |
widget_twg_random_image_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TinyWebGallery wrapper
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,826 ▲175 | 15.98 ▲0.32 | 8.65 ▲2.32 | 75.72 ▲0.97 |
Dashboard /wp-admin | 2,935 ▲39 | 6.09 ▼0.04 | 117.16 ▼12.42 | 170.69 ▲6.17 |
Posts /wp-admin/edit.php | 2,745 ▲8 | 3.24 ▲0.02 | 64.28 ▲2.94 | 131.55 ▼8.89 |
Add New Post /wp-admin/post-new.php | 3,707 ▼28 | 18.58 ▲0.06 | 438.25 ▲10.92 | 154.49 ▼4.80 |
Media Library /wp-admin/upload.php | 1,757 ▲5 | 5.56 ▲0.09 | 136.17 ▼9.18 | 182.22 ▼6.21 |
TinyWebGallery /wp-admin/tinywebgallery-wrapper.php | 26 | 0.94 | 0.03 | 22.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/tinywebgallery-wrapper/tinywebgallery-wrapper.php+24
Methods with the same name as their class will not be constructors in a future version of PHP; twgWrapper has a deprecated constructor
- The uninstall procedure has failed, leaving 2 options in the database
- widget_twg_random_image_widget
- twgWrapperAdminOptions
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tinywebgallery-wrapper/tinywebgallery-random-widget.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tinywebgallery-wrapper/tinywebgallery-random-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tinywebgallery-wrapper/tinywebgallery-admin-page.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/tinywebgallery-wrapper.php
- > Network (severe)
wp-admin/tinywebgallery-wrapper.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (The section to enter the TWG admin details.) image not found
- Plugin Name: Please specify the plugin name on the first line (
=== tinywebgallery-wrapper ===
)
tinywebgallery-wrapper/tinywebgallery-wrapper.php 92% from 13 tests
The entry point to "TinyWebGallery wrapper" version 2.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,088 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 64 | 68 | 807 |
PO File | 1 | 117 | 127 | 259 |
CSS | 1 | 4 | 0 | 22 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 7.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/jfu_logo_32x32.png | 2.11KB | 1.80KB | ▼ 14.97% |
img/logo.png | 5.11KB | 2.77KB | ▼ 45.75% |