Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.47ms] Passed 4 tests
A check of server-side resources used by ZP Post Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.38 ▼3.39 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.07 ▼7.50 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.73 ▼4.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.37 ▼6.63 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.02 ▲5.60 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for ZP Post Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.56 ▼1.09 | 1.68 ▼0.12 | 38.43 ▼4.52 |
Dashboard /wp-admin | 2,206 ▲15 | 4.83 ▼0.07 | 101.99 ▼12.82 | 39.32 ▼5.98 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.01 | 37.11 ▲0.79 | 33.01 ▼2.33 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.58 ▼5.53 | 682.07 ▲27.23 | 54.01 ▲6.30 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▲0.02 | 91.69 ▼5.69 | 40.13 ▼4.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zp-post-slider/include/zpps-post-slider-widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zp-post-slider/include/zpps-carousel-widget.php:6
- > 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 Passed 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
4 plugin tags: carousel, post slider, slider, post carousel
zp-post-slider/zp-post-slider.php Passed 13 tests
The main file in "ZP Post Slider" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
132 characters long description:
ZP Post Slider is a simple plugin that will display your post in a slider or carousel form. You can display all posts or by category
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 detected4,694 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 252 | 376 | 3,192 |
CSS | 3 | 12 | 54 | 841 |
PHP | 3 | 169 | 149 | 559 |
PO File | 1 | 41 | 43 | 102 |
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.14 |
Average class complexity | 26.50 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 6.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
PNG images were not found in this plugin