Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.03ms] Passed 4 tests
A check of server-side resources used by ZZ Image Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.61 ▲0.75 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.45 ▲0.49 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.52 ▼2.18 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.67 ▼12.00 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.50 ▼2.42 |
All Image Sliders /wp-admin/edit.php?post_type=zzis_gallery | 3.31 | 34.39 |
Add New Image Slider /wp-admin/post-new.php?post_type=zzis_gallery | 3.35 | 47.31 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 113 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
ZZ Image Slider: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 14.47 ▲0.09 | 1.77 ▲0.04 | 45.25 ▼2.73 |
Dashboard /wp-admin | 2,237 ▲49 | 4.85 ▼1.00 | 102.52 ▼17.29 | 36.64 ▼7.33 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.05 ▲0.05 | 35.54 ▼0.64 | 34.78 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,563 ▲24 | 23.22 ▼0.14 | 673.73 ▲9.78 | 64.72 ▲8.90 |
Media Library /wp-admin/upload.php | 1,416 ▲34 | 4.23 ▲0.03 | 103.44 ▲2.45 | 45.03 ▼1.08 |
All Image Sliders /wp-admin/edit.php?post_type=zzis_gallery | 1,097 | 1.93 | 30.66 | 29.39 |
Add New Image Slider /wp-admin/post-new.php?post_type=zzis_gallery | 4,541 | 4.63 | 93.21 | 52.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please take a closer look at the following
- 51× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/zz-image-slider/lib/views/frontend/arrow-19.php
- > /wp-content/plugins/zz-image-slider/lib/views/frontend/bullet-11.php
- > /wp-content/plugins/zz-image-slider/lib/views/frontend/bullet-17.php
- > /wp-content/plugins/zz-image-slider/lib/views/frontend/bullet-02.php
- > /wp-content/plugins/zz-image-slider/lib/views/frontend/thumbnail-05.php
- > /wp-content/plugins/zz-image-slider/lib/views/frontend/thumbnail-11.php
- > /wp-content/plugins/zz-image-slider/lib/views/frontend/thumbnail-08.php
- > /wp-content/plugins/zz-image-slider/lib/views/frontend/thumbnail-09.php
- > /wp-content/plugins/zz-image-slider/lib/views/frontend/thumbnail-03.php
- > /wp-content/plugins/zz-image-slider/lib/views/frontend/bullet-04.php
- 56× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: post in wp-content/plugins/zz-image-slider/lib/views/backend/settings_meta_box.php on line 17
- > PHP Warning
Use of undefined constant ZZIS_PLUGIN_URL - assumed 'ZZIS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/zz-image-slider/lib/views/backend/image_block.php on line 2
- > PHP Warning
require(ZZIS_PLUGIN_DIR/lib/controlers/JSSOR_Settings.php): failed to open stream: No such file or directory in wp-content/plugins/zz-image-slider/lib/controlers/zzis.php on line 3
- > PHP Warning
Use of undefined constant ZZIS_PLUGIN_URL - assumed 'ZZIS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/zz-image-slider/lib/views/frontend/arrow-05.php on line 19
- > PHP Warning
Use of undefined constant ZZIS_PLUGIN_URL - assumed 'ZZIS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/zz-image-slider/lib/views/frontend/arrow-04.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/zz-image-slider/lib/views/backend/shortcode_meta_box.php:1
- > PHP Warning
Use of undefined constant ZZIS_PLUGIN_URL - assumed 'ZZIS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/zz-image-slider/lib/views/frontend/arrow-06.php on line 19
- > PHP Warning
Use of undefined constant ZZIS_PLUGIN_URL - assumed 'ZZIS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/zz-image-slider/lib/views/frontend/arrow-01.php on line 19
- > PHP Warning
Use of undefined constant ZZIS_PLUGIN_URL - assumed 'ZZIS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/zz-image-slider/lib/views/frontend/arrow-15.php on line 19
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/zz-image-slider/lib/views/frontend/slider.php:7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: slideshow, vertical, carousel, slider, thumbnails...
zz-image-slider/zz-image-slider.php 92% from 13 tests
"ZZ Image Slider" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected3,332 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 61 | 421 | 530 | 2,693 |
PO File | 1 | 151 | 159 | 362 |
CSS | 3 | 47 | 17 | 215 |
JavaScript | 4 | 8 | 4 | 62 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.72 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.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 | 34 | |
▷ Static methods | 23 | 67.65% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.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
38 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/a01.png | 3.65KB | 2.21KB | ▼ 39.44% |
img/a19.png | 4.08KB | 2.64KB | ▼ 35.30% |
img/b05.png | 1.38KB | 1.22KB | ▼ 11.73% |
img/a08.png | 0.57KB | 0.27KB | ▼ 53.34% |
img/b17.png | 0.78KB | 0.82KB | 0.00% |