Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.41ms] Passed 4 tests
This is a short check of server-side resources used by MD Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.31 ▼0.44 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.71 ▼4.71 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.67 ▼2.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 94.67 ▼0.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 33.79 ▼1.72 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 115 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for MD Block
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲68 | 14.48 ▼0.14 | 1.67 ▲0.07 | 40.92 ▼0.76 |
Dashboard /wp-admin | 2,209 ▲18 | 4.85 ▼1.03 | 98.70 ▼2.43 | 40.51 ▼0.95 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▲0.04 | 39.45 ▼1.72 | 33.60 ▼4.85 |
Add New Post /wp-admin/post-new.php | 6,262 ▲4,720 | 20.54 ▲2.30 | 934.02 ▲321.08 | 59.40 ▲8.88 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▼0.01 | 95.81 ▼5.33 | 40.44 ▼3.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/md-block/md-block.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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: editor, block, markdown, writing
md-block/md-block.php Passed 13 tests
The main file in "MD Block" v. 0.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
A Gutenberg Block that allow to write markdown in Block Editor
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
There were no executable files found in this plugin1,385 lines of code in 114 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 381 | 135 | 1,253 |
JavaScript | 107 | 0 | 0 | 107 |
JSON | 1 | 0 | 0 | 23 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 94.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 53 | |
▷ Static methods | 4 | 7.55% |
▷ Public methods | 9 | 16.98% |
▷ Protected methods | 44 | 83.02% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin