Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-easy-slider/wp-easy-slider.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; EasySlider has a deprecated constructor
Server metrics [RAM: ▲0.01MB] [CPU: ▼11.15ms] Passed 4 tests
Analyzing server-side resources used by WP-Easy Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.62 ▲4.83 |
Dashboard /wp-admin | 3.31 ▲0.01 | 57.93 ▼21.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 57.18 ▼2.99 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 95.18 ▼14.36 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 39.63 ▼5.92 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
WP-Easy Slider: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲143 | 13.75 ▼0.84 | 7.02 ▲5.21 | 52.70 ▲12.86 |
Dashboard /wp-admin | 2,207 ▲19 | 4.85 ▼1.01 | 113.27 ▼29.89 | 44.23 ▼4.25 |
Posts /wp-admin/edit.php | 2,096 ▲1 | 2.05 ▲0.00 | 40.71 ▼15.33 | 37.54 ▼5.93 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 22.81 ▼0.24 | 646.82 ▼35.26 | 66.40 ▲9.82 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.24 ▲0.02 | 110.55 ▲6.38 | 48.10 ▼4.17 |
WP Easy Slider /wp-admin/wp-easy-slider.php | 26 | 0.44 | 0.10 | 14.05 |
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 detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-easy-slider/html/wp-admin-sidebar.php
- > /wp-content/plugins/wp-easy-slider/html/wp-admin.php
- > /wp-content/plugins/wp-easy-slider/html/wp-admin-form.php
- > /wp-content/plugins/wp-easy-slider/html/wp-footer.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
constant(): Couldn't find constant WES_URL in wp-content/plugins/wp-easy-slider/html/wp-admin-sidebar.php on line 7
- > PHP Warning
constant(): Couldn't find constant WES_URL in wp-content/plugins/wp-easy-slider/html/wp-admin-form.php on line 7
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-easy-slider/wp-easy-slider.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/wp-easy-slider/wp-easy-slider.php:15
- > PHP Warning
constant(): Couldn't find constant WES_URL in wp-content/plugins/wp-easy-slider/html/wp-footer.php on line 7
- > PHP Warning
constant(): Couldn't find constant WES_URL in wp-content/plugins/wp-easy-slider/html/wp-admin.php on line 9
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/wp-easy-slider.php
- > Network (severe)
wp-admin/wp-easy-slider.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Screenshot #1 (The WP Easy Slider) image required
wp-easy-slider/wp-easy-slider.php Passed 13 tests
The entry point to "WP-Easy Slider" version 0.2.2 is a PHP file that has certain tags in its header comment area
53 characters long description:
An easy slider for WordPress built-in image galleries
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
Success! There were no dangerous files found in this plugin507 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 49 | 39 | 262 |
JavaScript | 1 | 40 | 14 | 245 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 5.36KB | 0.80KB | ▼ 85.06% |