Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.21ms] Passed 4 tests
This is a short check of server-side resources used by Any Post Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 43.53 ▲1.83 |
Dashboard /wp-admin | 3.41 ▲0.07 | 47.50 ▼15.10 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.97 ▼1.33 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 99.96 ▼2.24 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 43.90 ▲6.78 |
All Sliders /wp-admin/edit.php?post_type=any_post_slider | 3.38 | 39.17 |
Add New Slider /wp-admin/post-new.php?post_type=any_post_slider | 3.42 | 44.03 |
Server storage [IO: ▲1.94MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Any Post Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲175 | 13.38 ▼0.98 | 11.99 ▲10.15 | 38.24 ▼0.80 |
Dashboard /wp-admin | 2,226 ▲51 | 5.58 ▼0.07 | 113.74 ▲10.41 | 42.47 ▲1.50 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.05 ▲0.06 | 40.03 ▼1.03 | 35.24 ▼6.47 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.42 ▲0.15 | 676.81 ▼18.65 | 63.64 ▲9.10 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.23 ▲0.04 | 105.81 ▼4.05 | 46.68 ▲0.54 |
All Sliders /wp-admin/edit.php?post_type=any_post_slider | 1,103 | 1.95 | 34.08 | 31.74 |
Add New Slider /wp-admin/post-new.php?post_type=any_post_slider | 1,740 | 2.52 | 56.61 | 67.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Any_Post_Slider' not found in wp-content/plugins/any-post-slider/public/partials/any-post-slider-public-display.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/any-post-slider/public/partials/any-post-slider-layout_three.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/any-post-slider/public/partials/any-post-slider-no_content.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/any-post-slider/public/partials/any-post-slider-layout_one.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/any-post-slider/public/partials/any-post-slider-layout_two.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/any-post-slider/public/partials/any-post-slider-layout_five.php:6
- > PHP Fatal error
Uncaught Error: Class 'Any_Post_Slider' not found in wp-content/plugins/any-post-slider/admin/partials/any-post-slider-cpt-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/any-post-slider/public/partials/any-post-slider-layout_four.php:6
- > 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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: post grid, custom post type sliders, carousel, sliders, post sliders
any-post-slider/any-post-slider.php 92% from 13 tests
The principal PHP file in "Any Post Slider" v. 1.0.3 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,210 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 179 | 627 | 721 |
CSS | 3 | 26 | 15 | 266 |
JavaScript | 4 | 23 | 73 | 164 |
SVG | 1 | 0 | 1 | 59 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 2.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 3 | 8.57% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 1.39MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/back.png | 4.79KB | 3.43KB | ▼ 28.38% |
admin/images/slider_style4.png | 456.90KB | 153.81KB | ▼ 66.34% |
public/images/place_holder.png | 13.91KB | 7.23KB | ▼ 48.04% |
admin/images/slider_style3.png | 138.40KB | 151.58KB | 0.00% |
admin/images/snowy-owl.png | 0.97KB | 0.83KB | ▼ 14.13% |