Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼10.44ms] Passed 4 tests
Server-side resources used by post slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.65 ▼4.24 |
Dashboard /wp-admin | 3.37 ▲0.03 | 47.48 ▼14.89 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.21 ▼2.53 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 87.20 ▼20.09 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.11 ▲7.65 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 15 new options
New WordPress options |
---|
db_upgraded |
speed |
navigation |
can_compress_scripts |
widget_recent-posts |
bg_color |
widget_theysaidso_widget |
pagination |
singleitem |
stop |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for post slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲218 | 14.01 ▼0.55 | 9.53 ▲7.75 | 40.40 ▼1.24 |
Dashboard /wp-admin | 2,227 ▲47 | 4.89 ▼0.74 | 110.69 ▲20.71 | 47.44 ▲4.14 |
Posts /wp-admin/edit.php | 2,140 ▲37 | 2.33 ▲0.28 | 41.90 ▲1.74 | 34.83 ▼4.83 |
Add New Post /wp-admin/post-new.php | 1,553 ▲6 | 23.27 ▲0.23 | 665.81 ▼10.78 | 35.89 ▼16.17 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.44 ▲0.23 | 103.76 ▼5.84 | 45.67 ▲2.77 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/smart-post-slider/assets/style/style.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/smart-post-slider/includes/smart_post_slider_shortcode.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-post-slider/admin/smart_post_slider_admin_setting.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/smart-post-slider/includes/smart_post_slider_script.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #2, #3, #4, #5 in smart-post-slider/assets to your readme.txt
smart-post-slider/smart-post-slider.php 92% from 13 tests
The primary PHP file in "post slider" version 1.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 202 characters long)
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 plugin1,776 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 208 | 17 | 1,291 |
PHP | 6 | 77 | 45 | 367 |
CSS | 2 | 14 | 18 | 118 |
PHP code Passed 2 tests
This is a very shot 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.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin