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.04MB] [CPU: ▼3.16ms] Passed 4 tests
Analyzing server-side resources used by markdownR
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 46.93 ▲7.58 |
Dashboard /wp-admin | 3.35 ▲0.04 | 47.27 ▲1.07 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 43.19 ▼0.37 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.53 ▼14.35 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.76 ▲1.00 |
markdown R /wp-admin/options-general.php?page=markdownR | 3.23 | 29.54 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
ou_markdownR_options_rstudio_pandoc_path |
ou_markdownR_options_magic_quotes |
ou_markdownR_options_R_path |
Browser metrics Passed 4 tests
A check of browser resources used by markdownR
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.54 ▼0.76 | 2.72 ▲0.87 | 43.77 ▲2.06 |
Dashboard /wp-admin | 2,210 ▲18 | 5.86 ▲0.92 | 96.41 ▼16.21 | 36.85 ▼3.32 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.01 ▲0.04 | 36.51 ▼0.19 | 34.28 ▲2.54 |
Add New Post /wp-admin/post-new.php | 11,358 ▲9,839 | 27.03 ▲3.89 | 1,090.48 ▲421.97 | 55.15 ▼1.23 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.16 ▲0.00 | 94.87 ▼5.13 | 39.29 ▼5.59 |
markdown R /wp-admin/options-general.php?page=markdownR | 808 | 2.06 | 24.55 | 28.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
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)
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/markdownr/markdownR.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (markdownR Option and R log file page), #2 (editor page), #3 (post page)
markdownr/markdownR.php 92% from 13 tests
The primary PHP file in "markdownR" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("markdownr.php" instead of "markdownR.php")
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
Good job! No executable or dangerous file extensions detected206 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 53 | 158 |
CSS | 1 | 6 | 0 | 24 |
R | 1 | 2 | 0 | 14 |
JavaScript | 1 | 0 | 1 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 30.76KB | 8.79KB | ▼ 71.42% |
screenshot-1.png | 29.68KB | 8.51KB | ▼ 71.32% |
screenshot-3.png | 34.54KB | 9.83KB | ▼ 71.55% |