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.04MB] [CPU: ▼8.00ms] Passed 4 tests
An overview of server-side resources used by WP Mermaid
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.21 ▼6.46 |
Dashboard /wp-admin | 3.36 ▲0.01 | 50.51 ▼18.71 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 53.24 ▲6.13 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 93.00 ▼10.40 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.35 ▲3.58 |
Server storage [IO: ▲2.83MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Mermaid
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 22.22 ▲7.54 | 1.86 ▼0.03 | 37.38 ▼8.40 |
Dashboard /wp-admin | 2,207 ▲19 | 13.06 ▲8.20 | 412.03 ▲295.44 | 42.87 ▼1.36 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 9.32 ▲7.29 | 85.17 ▲49.51 | 33.32 ▼4.07 |
Add New Post /wp-admin/post-new.php | 6,200 ▲4,679 | 27.89 ▲4.80 | 930.91 ▲269.28 | 48.74 ▼1.92 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 11.54 ▲7.38 | 145.72 ▲38.48 | 41.74 ▼1.68 |
WP Mermaid /wp-admin/wp-mermaid.php | 26 | 0.44 | 0.13 | 13.86 |
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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mermaid/inc/block.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mermaid/inc/shortcode.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mermaid/inc/smart-loader.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-mermaid/inc/admin/register.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mermaid/inc/admin/menu.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mermaid/inc/admin/setting.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mermaid/inc/mermaid-js.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/wp-mermaid.php
- > Network (severe)
wp-admin/wp-mermaid.php - Failed to load resource: the server responded with a status of 404 (Not Found)
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
5 plugin tags: flowchat, sequence, mermaid, diagram, markdown
wp-mermaid/wp-mermaid.php Passed 13 tests
The main PHP file in "WP Mermaid" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
99 characters long description:
Generation of diagrams and flowcharts from text in a similar manner as markdown by using mermaid.js
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,717 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 214 | 266 | 1,195 |
PHP | 8 | 73 | 209 | 305 |
PO File | 3 | 69 | 72 | 202 |
CSS | 1 | 4 | 8 | 15 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/example-gutenberg-block-1.png | 53.28KB | 20.01KB | ▼ 62.44% |
assets/example-gutenberg-block-2.png | 59.95KB | 21.28KB | ▼ 64.50% |