Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.56MB] [CPU: ▼31.03ms] Passed 4 tests
This is a short check of server-side resources used by Drawer Sliding
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 25.04 ▼16.41 |
Dashboard /wp-admin | 3.37 ▲0.06 | 27.99 ▼17.62 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 30.29 ▼17.39 |
Add New Post /wp-admin/post-new.php | 3.35 ▼2.54 | 27.65 ▼72.69 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 25.99 ▼6.46 |
Add New /wp-admin/post-new.php?post_type=custom_drawer_post | 3.35 | 24.66 |
Drawers /wp-admin/edit.php?post_type=custom_drawer_post | 3.42 | 31.59 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Drawer Sliding
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲133 | 13.48 ▼0.88 | 8.33 ▲6.56 | 40.63 ▼0.13 |
Dashboard /wp-admin | 2,229 ▲65 | 5.58 ▼0.02 | 92.65 ▼7.44 | 42.73 ▼1.39 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.03 ▲0.07 | 40.97 ▲4.86 | 35.40 ▼7.36 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 23.17 ▲0.05 | 593.36 ▼69.62 | 52.04 ▲3.64 |
Media Library /wp-admin/upload.php | 1,431 ▲37 | 4.24 ▲0.07 | 100.74 ▲3.56 | 42.87 ▲1.39 |
Add New /wp-admin/post-new.php?post_type=custom_drawer_post | 3,276 | 7.64 | 172.39 | 69.76 |
Drawers /wp-admin/edit.php?post_type=custom_drawer_post | 1,114 | 1.95 | 33.14 | 28.54 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=custom_drawer_post
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method CSDPost_Types::cs_post_limit() should not be called statically
- > GET request to /wp-admin/post-new.php?post_type=custom_drawer_post
- > Deprecated in wp-includes/class-wp-hook.php+312
Non-static method CSDPost_Types::add_meta_box() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=custom_drawer_post
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- > GET request to /wp-admin/post-new.php?post_type=custom_drawer_post
- > Deprecated in wp-admin/includes/template.php+1443
Non-static method CSDPost_Types::render_drawer_setting_meta_box() should not be called statically
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=custom_drawer_post
- > Warning in wp-content/plugins/drawer-sliding/includes/class-drawer-sliding-type.php+790
in_array() expects parameter 2 to be array, bool given
- > GET request to /wp-admin/edit.php?post_type=custom_drawer_post
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method CSDPost_Types::set_custom_class_name_columns() should not be called statically
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/drawer-sliding/public/drawer_type/class-drawer-type-content.php:2
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/drawer-sliding/includes/class-drawer-cart.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/drawer-sliding/public/drawer_type/class-drawer-type-menu.php:2
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/drawer-sliding/public/drawer_type/class-drawer-type-cart.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/drawer-sliding/public/drawer_type/class-drawer-type-cart.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/drawer-sliding/includes/class-drawer-cart.php:4
- > PHP Notice
Undefined variable: custom_drawer_post_data in wp-content/plugins/drawer-sliding/public/drawer_type/class-drawer-type-cart.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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 require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in drawer-sliding/assets to your readme.txt
drawer-sliding/drawer-sliding.php 92% from 13 tests
The entry point to "Drawer Sliding" version 1.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
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 plugin3,478 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 310 | 510 | 1,679 |
CSS | 3 | 250 | 37 | 1,312 |
JavaScript | 3 | 103 | 72 | 350 |
SVG | 3 | 0 | 3 | 137 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 16.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 5 | 13.89% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.89% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/open_square.png | 1.14KB | 0.82KB | ▼ 28.75% |
img/open_box.png | 0.59KB | 0.23KB | ▼ 60.57% |
img/open_red.png | 1.55KB | 0.82KB | ▼ 47.35% |
img/close.png | 0.77KB | 0.31KB | ▼ 58.93% |