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.43MB] [CPU: ▼2.31ms] Passed 4 tests
Server-side resources used by Plugin README Parser
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.46 | 40.58 ▲2.22 |
Dashboard /wp-admin | 3.78 ▲0.43 | 57.52 ▼4.59 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 50.78 ▲4.23 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 86.32 ▼11.08 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 41.97 ▲9.06 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Plugin README Parser
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.23 ▼0.45 | 1.74 ▲0.16 | 36.04 ▼8.02 |
Dashboard /wp-admin | 2,198 ▲21 | 5.64 ▲0.09 | 94.95 ▼6.38 | 42.03 ▲1.13 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.96 ▼0.06 | 39.08 ▼3.14 | 36.78 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.06 ▼0.06 | 677.02 ▲65.92 | 59.50 ▼2.19 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.18 ▼0.03 | 115.32 ▲17.65 | 48.43 ▲8.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/wp-readme-parser/includes/Michelf/MarkdownExtra.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-readme-parser/wp-readme-parser.php:30
- > PHP Fatal error
Uncaught Error: Interface 'Michelf\\MarkdownInterface' not found in wp-content/plugins/wp-readme-parser/includes/Michelf/Markdown.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-readme-parser/includes/generate-output.php:424
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-readme-parser/includes/admin-config.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: adopt-me, readme, plugin, embed, parser...
wp-readme-parser/wp-readme-parser.php Passed 13 tests
This is the main PHP file of "Plugin README Parser" version 1.3.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
90 characters long description:
Display a WordPress plugin's README file in XHTML format, for embedding on a post or page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,566 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 720 | 1,127 | 2,536 |
Markdown | 1 | 6 | 0 | 30 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 63.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 2 | 2.04% |
▷ Public methods | 6 | 6.12% |
▷ Protected methods | 92 | 93.88% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 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
PNG images were not found in this plugin