Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.07ms] Passed 4 tests
Server-side resources used by Reusable Content Blocks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 45.04 ▲5.32 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.09 ▼4.65 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 48.91 ▲3.54 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 83.88 ▼10.66 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 38.12 ▲3.49 |
Add New /wp-admin/post-new.php?post_type=rc_blocks | 3.41 | 46.55 |
All Blocks /wp-admin/edit.php?post_type=rc_blocks | 3.34 | 35.97 |
Settings /wp-admin/edit.php?post_type=rc_blocks&page=reusablecb-options | 3.26 | 31.54 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Reusable Content Blocks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.28 ▼1.37 | 1.49 ▼0.44 | 39.59 ▼2.41 |
Dashboard /wp-admin | 2,239 ▲51 | 5.85 ▼0.03 | 99.62 ▼10.10 | 40.60 ▼8.72 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.03 ▲0.03 | 40.69 ▲6.13 | 38.62 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.31 ▲0.14 | 629.20 ▼43.60 | 50.02 ▼1.67 |
Media Library /wp-admin/upload.php | 1,421 ▲30 | 4.24 ▲0.03 | 95.72 ▼6.06 | 42.05 ▼5.84 |
Add New /wp-admin/post-new.php?post_type=rc_blocks | 2,188 | 7.57 | 186.07 | 66.51 |
All Blocks /wp-admin/edit.php?post_type=rc_blocks | 1,094 | 1.94 | 29.35 | 30.59 |
Settings /wp-admin/edit.php?post_type=rc_blocks&page=reusablecb-options | 884 | 2.03 | 23.71 | 33.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/reusable-content-blocks/1.1.3/includes/reusablec-block-post-type.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reusable-content-blocks/includes/options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reusable-content-blocks/1.1.2/includes/options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/reusable-content-blocks/includes/reusablec-block-post-type.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/reusable-content-blocks/1.1.2/includes/reusablec-block-post-type.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/reusable-content-blocks/1.1.3/1.1.2/includes/reusablec-block-post-type.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reusable-content-blocks/1.1.3/1.1.2/includes/options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reusable-content-blocks/1.1.3/includes/options.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: reusable content widget, thecodepoetry, wpbakery global widget, reusable content blocks
reusable-content-blocks/reusablec-block.php 77% from 13 tests
The main file in "Reusable Content Blocks" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 262 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("reusable-content-blocks.php" instead of "reusablec-block.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin532 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 193 | 121 | 503 |
JavaScript | 1 | 4 | 0 | 16 |
CSS | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 64 | |
▷ Named functions | 60 | 93.75% |
▷ Anonymous functions | 4 | 6.25% |
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
There are no PNG files in this plugin