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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.47ms] Passed 4 tests
Server-side resources used by Wp Custom CMS Block
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 42.93 ▼1.02 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.93 ▼2.98 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 54.07 ▼3.36 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 99.37 ▲1.61 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 31.89 ▼2.51 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_custom_cms_block |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wp Custom CMS Block
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.41 ▲0.44 | 1.73 ▼0.24 | 43.92 ▲1.48 |
Dashboard /wp-admin | 2,211 ▲34 | 5.60 ▼0.16 | 92.17 ▼10.67 | 43.34 ▼5.55 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.01 ▼0.03 | 40.49 ▼0.89 | 35.45 ▼4.92 |
Add New Post /wp-admin/post-new.php | 1,539 ▼16 | 17.61 ▼0.66 | 696.43 ▲80.94 | 59.74 ▲1.26 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 4.28 ▲0.10 | 97.53 ▼2.54 | 45.15 ▼1.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined index: submitAddBlck in wp-content/plugins/wp-custom-cms-block/wpcc_block_admin.php on line 93
- > PHP Notice
Undefined index: submitBlckUpdate in wp-content/plugins/wp-custom-cms-block/wpcc_block_admin.php on line 96
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-custom-cms-block/wp_custom_cms_block.php:32
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-custom-cms-block/wpcc_block_admin.php:252
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-custom-cms-block/wpcc_block_admin.php on line 250
- > PHP Notice
Undefined index: submitBlck in wp-content/plugins/wp-custom-cms-block/wpcc_block_admin.php on line 90
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
wp-custom-cms-block/wp_custom_cms_block.php 92% from 13 tests
The principal PHP file in "Wp Custom CMS Block" v. 2.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-custom-cms-block.php" instead of "wp_custom_cms_block.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected365 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 33 | 15 | 365 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected