Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/zoom-widget/zoom_widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; zoom_widget has a deprecated constructor
Server metrics [RAM: ▲0.02MB] [CPU: ▼145.61ms] Passed 4 tests
This is a short check of server-side resources used by Z
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 29.83 ▲7.73 |
Dashboard /wp-admin | 3.08 ▲0.02 | 41.84 ▼4.80 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 37.95 ▼5.30 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 81.20 ▼569.54 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 28.41 ▼2.78 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 9 new options
New WordPress options |
---|
Spider_Zoom_max |
Spider_Zoom_min |
Spider_Zoom_class |
Spider_Zoom_imgsize |
Spider_Zoom_imggroup |
Spider_Zoom_title |
widget_zoom_widget |
Spider_Zoom_tag |
Spider_Zoom_id |
Browser metrics Passed 4 tests
An overview of browser requirements for Z
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,726 ▲89 | 15.73 ▼0.10 | 8.77 ▲0.32 | 46.63 ▲2.12 |
Dashboard /wp-admin | 2,993 ▲62 | 5.85 ▼0.07 | 134.34 ▼0.54 | 102.14 ▼11.83 |
Posts /wp-admin/edit.php | 2,762 ▲23 | 2.70 ▲0.00 | 64.69 ▼0.62 | 86.94 ▼1.47 |
Add New Post /wp-admin/post-new.php | 1,888 ▼169 | 19.06 ▼0.30 | 349.28 ▼12.16 | 121.41 ▲15.14 |
Media Library /wp-admin/upload.php | 1,832 ▲25 | 5.03 ▲0.00 | 143.94 ▼20.29 | 113.47 ▼3.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- widget_zoom_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/zoom-widget/zoom.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zoom-widget/zoom_widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
There were no plugin tags found
zoom-widget/zoom.php 92% from 13 tests
"Z" version 1.2.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("zoom-widget.php" instead of "zoom.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected10,365 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 2,079 | 1,484 | 8,216 |
PHP | 10 | 390 | 24 | 1,554 |
CSS | 2 | 42 | 164 | 594 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Spider_ZoomLogo.png | 3.17KB | 0.66KB | ▼ 79.08% |
images/Spider_ZoomLogoHover.png | 3.22KB | 0.68KB | ▼ 78.99% |
elements/images/1/100.png | 9.44KB | 4.75KB | ▼ 49.70% |
elements/images/1/minus.png | 4.19KB | 1.37KB | ▼ 67.28% |
screenshot-1.png | 5.17KB | 2.92KB | ▼ 43.54% |