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
Install script ran successfully
Server metrics [RAM: ▼0.23MB] [CPU: ▼19.91ms] Passed 4 tests
An overview of server-side resources used by WP HyperMD
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 39.72 ▲3.96 |
Dashboard /wp-admin | 3.79 ▲0.45 | 48.50 ▼7.70 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 47.70 ▲0.86 |
Add New Post /wp-admin/post-new.php | 3.64 ▼2.25 | 28.63 ▼76.74 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 43.56 ▲9.78 |
WP HyperMD /wp-admin/plugins.php?page=wp-hypermd-settings | 3.62 | 36.35 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
wp-hypermd-settings |
Browser metrics Passed 4 tests
Checking browser requirements for WP HyperMD
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲215 | 17.28 ▲2.92 | 18.46 ▲16.83 | 43.34 ▲0.91 |
Dashboard /wp-admin | 2,228 ▲45 | 6.70 ▲1.77 | 123.92 ▲14.60 | 38.20 ▼4.47 |
Posts /wp-admin/edit.php | 2,138 ▲46 | 3.98 ▲1.98 | 68.52 ▲27.79 | 36.33 ▼0.35 |
Add New Post /wp-admin/post-new.php | 2,812 ▲1,290 | 5.83 ▼17.42 | 140.81 ▼475.05 | 56.54 ▲5.45 |
Media Library /wp-admin/upload.php | 1,448 ▲66 | 5.54 ▲1.32 | 116.42 ▲20.99 | 42.51 ▲0.75 |
WP HyperMD /wp-admin/plugins.php?page=wp-hypermd-settings | 1,637 | 4.48 | 72.85 | 41.69 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Michelf\\MarkdownInterface' not found in wp-content/plugins/wp-hypermd/vendor/michelf/php-markdown/Michelf/Markdown.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function HyperMDRoot\\plugins_url() in wp-content/plugins/wp-hypermd/wp-hypermd.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/wp-hypermd/uninstall.php:10
- > PHP Fatal error
Uncaught Error: Class 'Michelf\\MarkdownExtra' not found in wp-content/plugins/wp-hypermd/src/App/WPMarkdownParser.php:7
- > PHP Fatal error
Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/wp-hypermd/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Contributors: No tags were detected
- Contributors: Plugin contributors not specified
wp-hypermd/wp-hypermd.php 92% from 13 tests
The main PHP script in "WP HyperMD" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
There were no executable files found in this plugin4,438 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 1,027 | 2,447 | 4,436 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 18.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 270 | |
▷ Static methods | 8 | 2.96% |
▷ Public methods | 153 | 56.67% |
▷ Protected methods | 109 | 40.37% |
▷ Private methods | 8 | 2.96% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 10 | |
▷ Global constants | 4 | 40.00% |
▷ Class constants | 6 | 60.00% |
▷ Public constants | 6 | 100.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
There are no PNG files in this plugin