Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼6.87ms] Passed 4 tests
An overview of server-side resources used by WP-Parsedown
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 40.62 ▲0.34 |
Dashboard /wp-admin | 3.50 ▲0.20 | 50.18 ▼3.75 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 50.03 ▼2.66 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 84.42 ▼18.86 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 37.94 ▼2.21 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 134 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-Parsedown
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,786 ▲25 | 14.25 ▼0.39 | 2.20 ▲0.46 | 42.58 ▲3.64 |
Dashboard /wp-admin | 2,195 ▲21 | 5.68 ▲0.01 | 88.71 ▼2.28 | 40.49 ▲1.66 |
Posts /wp-admin/edit.php | 2,100 ▼7 | 2.03 ▲0.03 | 36.44 ▼6.17 | 34.39 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.17 ▼0.04 | 655.58 ▲4.67 | 54.67 ▼4.39 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.18 ▲0.02 | 105.52 ▲4.70 | 46.42 ▲2.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
include(ParsedownExtra.php): failed to open stream: No such file or directory in wp-content/plugins/wp-parsedown/lib/parsedown-extra/test/bootstrap.php on line 10
- > PHP Warning
include(Parsedown.php): failed to open stream: No such file or directory in wp-content/plugins/wp-parsedown/lib/parsedown/test/bootstrap.php on line 3
- > PHP Warning
include(): Failed opening 'vendor/erusev/parsedown/Parsedown.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-parsedown/lib/parsedown-extra/test/bootstrap.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'ParsedownTest' not found in wp-content/plugins/wp-parsedown/lib/parsedown-extra/test/ParsedownExtraTest.php:3
- > PHP Warning
include(): Failed opening 'vendor/erusev/parsedown/test/ParsedownTest.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-parsedown/lib/parsedown-extra/test/bootstrap.php on line 8
- > PHP Warning
include(vendor/erusev/parsedown/Parsedown.php): failed to open stream: No such file or directory in wp-content/plugins/wp-parsedown/lib/parsedown-extra/test/bootstrap.php on line 7
- > PHP Warning
include(): Failed opening 'Parsedown.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-parsedown/lib/parsedown/test/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-parsedown/lib/parsedown/test/CommonMarkTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'Parsedown' not found in wp-content/plugins/wp-parsedown/lib/parsedown-extra/ParsedownExtra.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-parsedown/lib/parsedown/test/ParsedownTest.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Donate link: Invalid url: ""
wp-parsedown/wp-parsedown.php Passed 13 tests
"WP-Parsedown" version 0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
60 characters long description:
[Parsedown Extra](www.parsedown.org/demo?extra=1) on-the-fly
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,565 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 533 | 200 | 1,637 |
HTML | 56 | 4 | 3 | 475 |
Markdown | 60 | 200 | 0 | 398 |
JSON | 2 | 0 | 0 | 39 |
XML | 2 | 0 | 0 | 16 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 1 | 1.28% |
▷ Public methods | 19 | 24.36% |
▷ Protected methods | 57 | 73.08% |
▷ Private methods | 2 | 2.56% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin