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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.99ms] Passed 4 tests
Analyzing server-side resources used by Post Type Slider for Customizr
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.23 ▲0.54 |
Dashboard /wp-admin | 3.32 ▲0.02 | 63.19 ▲8.69 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.59 ▼1.93 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.80 ▼4.88 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 37.98 ▲2.33 |
CPT Customizr Slider /wp-admin/options-general.php?page=risbl_slider_customizr_settings | 3.19 | 30.09 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Type Slider for Customizr
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.35 ▲0.05 | 2.03 ▼0.14 | 45.21 ▲0.46 |
Dashboard /wp-admin | 2,206 ▲32 | 5.63 ▼0.02 | 96.71 ▲1.13 | 42.67 ▼1.26 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.18 ▲0.18 | 33.91 ▼7.17 | 32.94 ▼5.66 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.14 ▲5.03 | 643.29 ▲29.21 | 48.34 ▼14.19 |
Media Library /wp-admin/upload.php | 1,408 ▲14 | 4.26 ▲0.07 | 98.46 ▼4.57 | 45.18 ▼4.09 |
CPT Customizr Slider /wp-admin/options-general.php?page=risbl_slider_customizr_settings | 902 | 2.04 | 29.77 | 28.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=risbl_slider_customizr_settings
- > Notice in wp-content/plugins/post-type-slider-for-customizr/class-admin.php+138
Trying to access array offset on value of type bool
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: customizr, slider, post type
post-type-slider-for-customizr/risbl-post-type-slider-for-customizr.php 77% from 13 tests
"Post Type Slider for Customizr" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("post-type-slider-for-customizr.php" instead of "risbl-post-type-slider-for-customizr.php")
- Domain Path: The domain path folder was not found ("/lang/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected591 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 203 | 157 | 424 |
PO File | 1 | 28 | 30 | 83 |
JavaScript | 1 | 18 | 4 | 33 |
Sass | 1 | 3 | 2 | 31 |
CSS | 1 | 1 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected