Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼149.73ms] Passed 4 tests
Analyzing server-side resources used by Image Viewer Made Easy
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 52.60 ▲28.21 |
Dashboard /wp-admin | 3.15 ▲0.10 | 57.34 ▲10.42 |
Posts /wp-admin/edit.php | 3.26 ▲0.16 | 52.99 ▲2.51 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.08 | 98.73 ▼605.84 |
Media Library /wp-admin/upload.php | 3.10 ▲0.09 | 37.00 ▼6.02 |
Image Viewers /wp-admin/edit.php?post_type=wivme_image_viewer | 3.14 | 43.04 |
Add New /wp-admin/post-new.php?post_type=wivme_image_viewer | 3.22 | 54.77 |
Getting Started /wp-admin/edit.php?post_type=wivme_image_viewer&page=wivme-help | 3.10 | 34.63 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Image Viewer Made Easy
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,828 ▲232 | 16.59 ▲0.70 | 15.42 ▲5.97 | 49.93 ▼7.58 |
Dashboard /wp-admin | 3,003 ▲72 | 5.92 ▼0.15 | 153.84 ▼46.89 | 126.39 ▼0.67 |
Posts /wp-admin/edit.php | 2,792 ▲53 | 2.73 ▲0.05 | 81.82 ▲2.95 | 97.84 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,708 ▲127 | 18.49 ▲0.39 | 408.29 ▼18.36 | 119.10 ▼4.14 |
Media Library /wp-admin/upload.php | 1,857 ▲50 | 5.06 ▲0.05 | 169.73 ▼11.61 | 122.25 ▼6.89 |
Image Viewers /wp-admin/edit.php?post_type=wivme_image_viewer | 1,468 | 2.68 | 84.98 | 82.18 |
Add New /wp-admin/post-new.php?post_type=wivme_image_viewer | 2,781 | 4.61 | 123.06 | 124.07 |
Getting Started /wp-admin/edit.php?post_type=wivme_image_viewer&page=wivme-help | 1,189 | 2.35 | 65.04 | 124.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/image-viewer-made-easy/templates/manage-viewer-images.php on line 3
- > PHP Notice
Undefined variable: plugins in wp-content/plugins/image-viewer-made-easy/templates/plugins-feed.php on line 5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/image-viewer-made-easy/templates/plugins-feed.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/image-viewer-made-easy/templates/plugin-help.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/image-viewer-made-easy/templates/manage-viewer-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-viewer-made-easy/functions.php:13
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/image-viewer-made-easy/templates/plugins-feed.php on line 3
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/image-viewer-made-easy/templates/manage-viewer-settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/image-viewer-made-easy/templates/manage-viewer-images.php:6
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: images, zooming, gallery slider, image gallery, transition...
image-viewer-made-easy/image-viewer-made-easy.php Passed 13 tests
The main file in "Image Viewer Made Easy" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
111 characters long description:
Create aweosome Image Viewer for WordPress with image sliding, gallery, zooimng, rotating and sclaing features.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,906 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 378 | 164 | 1,390 |
PHP | 8 | 200 | 49 | 607 |
CSS | 4 | 126 | 21 | 495 |
Markdown | 1 | 326 | 0 | 414 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 19 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.52% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/viewer-edit.png | 0.70KB | 0.52KB | ▼ 25.00% |
images/viewer-delete.png | 0.29KB | 0.20KB | ▼ 29.59% |