Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.63ms] Passed 4 tests
An overview of server-side resources used by HyperCoder CodeBlock
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.90 ▼3.45 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.99 ▼1.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.26 ▼5.56 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.41 ▼24.30 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.29 ▲0.19 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for HyperCoder CodeBlock
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.68 ▲0.29 | 1.86 ▲0.23 | 45.14 ▲2.17 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.02 | 87.68 ▼3.95 | 41.08 ▲2.30 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.02 | 39.87 ▲4.53 | 35.39 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.92 ▲0.68 | 685.86 ▲26.31 | 55.15 ▼1.44 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.20 ▲0.01 | 106.61 ▲2.18 | 43.70 ▼0.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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
Everything seems fine, however this is by no means an exhaustive test
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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/hypercoder-codeblock/hccb.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: code, highlight, copy, clipboard
hypercoder-codeblock/hccb.php 85% from 13 tests
The main PHP file in "HyperCoder CodeBlock" ver. 20190531... adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "20190531...")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hypercoder-codeblock.php" instead of "hccb.php")
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 plugin80 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 8 | 0 | 48 |
PHP | 1 | 8 | 10 | 17 |
JavaScript | 1 | 3 | 0 | 15 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin