Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.70ms] Passed 4 tests
Server-side resources used by Markdown Display by Logic Hop
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 40.50 ▼1.12 |
Dashboard /wp-admin | 3.32 ▼0.03 | 48.72 ▼10.10 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.21 ▲1.33 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 83.80 ▼15.86 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.79 ▼3.72 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Markdown Display by Logic Hop
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.74 ▲0.44 | 1.87 ▲0.02 | 44.88 ▲1.33 |
Dashboard /wp-admin | 2,209 ▲21 | 5.98 ▲0.91 | 96.74 ▼2.98 | 35.54 ▼7.00 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.05 | 33.17 ▼5.21 | 32.94 ▼4.15 |
Add New Post /wp-admin/post-new.php | 6,245 ▲4,717 | 26.05 ▲7.65 | 964.40 ▲357.96 | 67.77 ▲11.30 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.03 | 95.20 ▼4.46 | 43.04 ▼1.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: logic hop, posting, publishing, markdown, post
markdown-display-by-logic-hop/logic-hop-markdown.php 92% from 13 tests
This is the main PHP file of "Markdown Display by Logic Hop" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("markdown-display-by-logic-hop.php" instead of "logic-hop-markdown.php")
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,290 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 426 | 344 | 1,290 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 230.00 |
▷ Minimum class complexity | 230.00 |
▷ Maximum class complexity | 230.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 4 | 5.97% |
▷ Public methods | 9 | 13.43% |
▷ Protected methods | 58 | 86.57% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 1.09MB with 0.70MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 509.34KB | 208.71KB | ▼ 59.02% |
screenshot-2.png | 606.24KB | 181.81KB | ▼ 70.01% |