Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.74ms] Passed 4 tests
Analyzing server-side resources used by CodeMirror Blocks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.06 ▼1.83 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.30 ▼2.28 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 48.95 ▲3.62 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 85.25 ▼10.45 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.30 ▲5.00 |
Server storage [IO: ▲2.98MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 435 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
CodeMirror Blocks: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲57 | 13.28 ▼1.10 | 1.68 ▼0.33 | 40.14 ▼8.26 |
Dashboard /wp-admin | 2,221 ▲30 | 4.86 ▼0.05 | 102.26 ▼2.39 | 37.43 ▼5.04 |
Posts /wp-admin/edit.php | 2,083 ▼9 | 2.02 ▲0.01 | 34.30 ▼0.71 | 33.92 ▲2.38 |
Add New Post /wp-admin/post-new.php | 6,203 ▲4,689 | 19.20 ▲1.68 | 911.68 ▲262.97 | 62.41 ▲11.27 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.27 ▲0.06 | 94.64 ▼5.21 | 42.72 ▲0.73 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-codemirror-block/index.php 77% from 13 tests
The primary PHP file in "CodeMirror Blocks" version 1.2.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-codemirror-block.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 186 characters long)
- 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 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin64,119 lines of code in 430 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 222 | 6,103 | 4,112 | 46,115 |
HTML | 129 | 2,540 | 10 | 13,590 |
CSS | 75 | 599 | 413 | 3,539 |
PHP | 4 | 148 | 385 | 875 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 20.33 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 22 | 68.75% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 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 |
tinymce/js/code-block-setting.png | 17.67KB | 6.56KB | ▼ 62.86% |
tinymce/js/code-block.png | 9.62KB | 3.73KB | ▼ 61.21% |