Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.88MB] [CPU: ▼178.95ms] Passed 4 tests
Analyzing server-side resources used by WP Slider Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 38.63 ▲15.04 |
Dashboard /wp-admin | 2.77 ▼0.28 | 21.18 ▼28.11 |
Posts /wp-admin/edit.php | 2.77 ▼0.34 | 22.18 ▼26.68 |
Add New Post /wp-admin/post-new.php | 2.77 ▼2.66 | 22.43 ▼644.65 |
Media Library /wp-admin/upload.php | 2.77 ▼0.24 | 21.46 ▼16.36 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WP Slider Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,878 ▲282 | 16.30 ▲0.78 | 14.99 ▲6.17 | 45.78 ▼11.41 |
Dashboard /wp-admin | 3,063 ▲132 | 5.88 ▼0.08 | 146.29 ▲0.30 | 111.91 ▼9.97 |
Posts /wp-admin/edit.php | 2,831 ▲92 | 2.81 ▼0.01 | 67.79 ▼0.98 | 95.59 ▲3.83 |
Add New Post /wp-admin/post-new.php | 1,672 ▲174 | 21.40 ▲2.52 | 282.54 ▼92.09 | 112.16 ▼14.02 |
Media Library /wp-admin/upload.php | 1,899 ▲92 | 5.02 ▲0.01 | 162.72 ▲4.53 | 117.96 ▼13.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5211
add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-slider-ssp/views/ssp_skins/default/slider.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-slider-ssp/views/new_slide_template.php:20
- > PHP Notice
Undefined variable: post_status in wp-content/plugins/simple-slider-ssp/views/custom_publish_meta_box.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-slider-ssp/config.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-slider-ssp/views/intro_box.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-slider-ssp/wp-slider.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-slider-ssp/views/shortcode_meta_box.php:5
- > PHP Notice
Undefined variable: shortcode in wp-content/plugins/simple-slider-ssp/views/shortcode_meta_box.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/simple-slider-ssp/views/custom_publish_meta_box.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/simple-slider-ssp/views/options_meta_box.php:4
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: You are using too many tags: 74 tag instead of maximum 10
simple-slider-ssp/wp-slider.php 92% from 13 tests
The entry point to "WP Slider Plugin" version 1.4.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-slider-ssp.php" instead of "wp-slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,381 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 541 | 46 | 1,302 |
CSS | 3 | 167 | 34 | 769 |
JavaScript | 2 | 144 | 8 | 310 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 20.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 3 | 6.38% |
▷ Public methods | 47 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/html-feature.png | 10.60KB | 3.88KB | ▼ 63.39% |
views/ssp_skins/default/lib/images/bg_direction_nav.png | 1.82KB | 0.79KB | ▼ 56.38% |
images/sprite.png | 6.40KB | 3.00KB | ▼ 53.07% |