Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.40ms] Passed 4 tests
Analyzing server-side resources used by Controlled Content Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.64 ▼5.95 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.61 ▼7.13 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 55.96 ▲7.32 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.30 ▼13.40 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.95 ▼3.12 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Controlled Content Block
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.37 ▼0.01 | 1.87 ▲0.21 | 39.94 ▼1.57 |
Dashboard /wp-admin | 2,195 ▲15 | 5.56 ▲0.03 | 88.22 ▼5.51 | 38.54 ▼3.82 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▼0.06 | 36.43 ▼0.70 | 33.18 ▼1.01 |
Add New Post /wp-admin/post-new.php | 6,367 ▲4,839 | 27.47 ▲4.38 | 842.92 ▲145.76 | 56.80 ▲2.48 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.36 ▲0.13 | 102.22 ▼16.24 | 43.74 ▼10.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/controlled-content-block/controlled-content.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% 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: Please add descriptions for these screenshots #1, #2 in controlled-content-block/assets to your readme.txt
controlled-content-block/controlled-content.php 77% from 13 tests
The main PHP script in "Controlled Content Block" version 0.2.1 is automatically included on every request by WordPress
It is important to fix the following:
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.6" instead of "7.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("controlled-content-block.php" instead of "controlled-content.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin220 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 20 | 27 | 128 |
JSON | 1 | 0 | 0 | 45 |
PHP | 2 | 5 | 13 | 31 |
Sass | 1 | 1 | 0 | 15 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin