Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▲2.43ms] Passed 4 tests
Analyzing server-side resources used by Harrix MarkdownFile
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 43.11 ▲1.38 |
Dashboard /wp-admin | 3.45 ▲0.14 | 50.23 ▲2.48 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 51.29 ▲3.44 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 97.43 ▲3.78 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.32 ▲2.42 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Harrix MarkdownFile
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.37 ▼0.99 | 7.11 ▲5.24 | 39.13 ▼8.19 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▲1.00 | 105.15 ▼10.81 | 42.06 ▼2.37 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.03 | 38.96 ▲3.79 | 35.36 ▲2.12 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 18.34 ▼4.92 | 597.21 ▼81.21 | 68.36 ▲15.88 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▼0.01 | 94.74 ▼3.88 | 41.93 ▼2.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Interface 'Michelf\\MarkdownInterface' not found in wp-content/plugins/harrix-markdownfile/Michelf/Markdown.php:20
- > PHP Fatal error
Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/harrix-markdownfile/Michelf/MarkdownExtra.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/harrix-markdownfile/harrix-markdownfile.php:14
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 97% 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:
- Donate link: Invalid URI ("")
harrix-markdownfile/harrix-markdownfile.php Passed 13 tests
Analyzing the main PHP file in "Harrix MarkdownFile" version 1.2
96 characters long description:
Harrix MarkdownFile is a plugin to display Markdown files with syntax highlighting in Wordpress.
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
Everything looks great! No dangerous files found in this plugin6,990 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 65 | 771 | 453 | 3,837 |
PHP | 8 | 793 | 950 | 3,151 |
JavaScript | 1 | 0 | 1 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 87.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 144 | |
▷ Static methods | 3 | 2.08% |
▷ Public methods | 13 | 9.03% |
▷ Protected methods | 131 | 90.97% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
styles/brown-papersq.png | 17.77KB | 9.92KB | ▼ 44.16% |
styles/school-book.png | 0.47KB | 0.34KB | ▼ 27.37% |