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
Installer ran successfully
Server metrics [RAM: ▲2.27MB] [CPU: ▲17.07ms] Passed 4 tests
This is a short check of server-side resources used by Content Control - The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.71 ▲2.25 | 56.88 ▲18.14 |
Dashboard /wp-admin | 5.59 ▲2.28 | 63.08 ▲16.84 |
Posts /wp-admin/edit.php | 5.61 ▲2.25 | 59.03 ▲14.84 |
Add New Post /wp-admin/post-new.php | 8.40 ▲2.52 | 102.66 ▲18.47 |
Media Library /wp-admin/upload.php | 5.54 ▲2.31 | 58.58 ▲22.87 |
Content Control /wp-admin/options-general.php?page=content-control-settings | 5.46 | 46.94 |
Server storage [IO: ▲1.18MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 179 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-comments |
content_control_installed_on |
content_control_settings |
db_upgraded |
content_control_debug_log_token |
theysaidso_admin_options |
content_control_completed_upgrades |
widget_theysaidso_widget |
content_control_known_blockTypes |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Content Control - The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.42 ▲0.07 | 1.84 ▲0.24 | 43.59 ▲2.16 |
Dashboard /wp-admin | 2,199 ▲21 | 5.64 ▲0.06 | 88.14 ▼11.06 | 36.76 ▼1.02 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.01 | 33.32 ▼2.03 | 34.75 ▼2.83 |
Add New Post /wp-admin/post-new.php | 1,556 ▲19 | 23.84 ▲5.52 | 724.70 ▲65.98 | 37.63 ▼26.92 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.10 | 104.00 ▲8.32 | 44.86 ▼4.01 |
Content Control /wp-admin/options-general.php?page=content-control-settings | 1,780 | 12.09 | 294.05 | 35.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 13 options in the database
- content_control_installed_on
- content_control_known_blockTypes
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- content_control_completed_upgrades
- content_control_data_versioning
- content_control_settings
- can_compress_scripts
- ...
Smoke tests 50% 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
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'ContentControl\\Vendor\\Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/content-control/vendor-prefixed/pimple/pimple/src/Pimple/Exception/InvalidServiceIdentifierException.php:39
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/content-control/vendor-prefixed/pimple/pimple/src/Pimple/Tests/PimpleTest.php:38
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-upgrader-skin.php): failed to open stream: No such file or directory in wp-content/plugins/content-control/classes/Installers/PluginSilentUpgraderSkin.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'ContentControl\\Base\\Controller' not found in wp-content/plugins/content-control/classes/Controllers/Compatibility/Elementor.php:16
- > PHP Fatal error
Uncaught Error: Class 'ContentControl\\Models\\RuleEngine\\Item' not found in wp-content/plugins/content-control/classes/Models/RuleEngine/Group.php:16
- > PHP Fatal error
Uncaught Error: Class 'ContentControl\\Base\\Controller' not found in wp-content/plugins/content-control/classes/Controllers/Admin/WidgetEditor.php:21
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/content-control/classes/Installers/PluginSilentUpgraderSkin.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/content-control/vendor-prefixed/pimple/pimple/src/Pimple/Tests/PimpleServiceProviderInterfaceTest.php:38
- > PHP Fatal error
Uncaught Error: Class 'ContentControl\\Base\\Controller' not found in wp-content/plugins/content-control/classes/Controllers/Compatibility/Divi.php:16
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader-skin.php' (include_path='.:/usr/share/php') in wp-content/plugins/content-control/classes/Installers/PluginSilentUpgraderSkin.php on line 13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=content-control-settings
- > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
`select` control in `@wordpress/data-controls` is deprecated since version 5.7. Please use built-in `resolveSelect` control in `@wordpress/data` instead.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
content-control/content-control.php 92% from 13 tests
The principal PHP file in "Content Control - The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More" v. 2.0.12 is loaded by WordPress automatically on each request
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)
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
Success! There were no dangerous files found in this plugin14,033 lines of code in 174 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 142 | 3,885 | 8,698 | 12,804 |
Sass | 6 | 108 | 2 | 550 |
JSON | 1 | 0 | 0 | 322 |
JavaScript | 11 | 52 | 48 | 184 |
SVG | 6 | 0 | 0 | 144 |
CSS | 8 | 0 | 0 | 29 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 31 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 102 | |
▷ Abstract classes | 4 | 3.92% |
▷ Concrete classes | 98 | 96.08% |
▷ Final classes | 14 | 14.29% |
Methods | 702 | |
▷ Static methods | 37 | 5.27% |
▷ Public methods | 625 | 89.03% |
▷ Protected methods | 16 | 2.28% |
▷ Private methods | 61 | 8.69% |
Functions | 186 | |
▷ Named functions | 93 | 50.00% |
▷ Anonymous functions | 93 | 50.00% |
Constants | 56 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 56 | 100.00% |
▷ Public constants | 56 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/rule-engine-first-time.png | 12.47KB | 5.84KB | ▼ 53.14% |
assets/images/icon-128x128.png | 15.63KB | 5.92KB | ▼ 62.12% |