Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼12.17ms] Passed 4 tests
Server-side resources used by RAML Console
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.83 ▲3.71 |
Dashboard /wp-admin | 3.33 ▼0.02 | 47.02 ▼21.77 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.54 ▼3.61 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.75 ▼21.77 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.63 ▼1.51 |
Server storage [IO: ▲5.77MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
RAML Console: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.25 ▼0.06 | 2.13 ▲0.00 | 47.35 ▲9.04 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▼0.04 | 85.50 ▼1.44 | 41.62 ▼1.81 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.09 | 36.36 ▼0.70 | 35.09 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.10 ▲5.34 | 630.50 ▼71.30 | 49.16 ▼4.92 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.18 ▼0.04 | 99.17 ▼11.42 | 41.90 ▼5.32 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/raml-console/tempate-page-fullwidth.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raml-console/raml-console.php:48
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: mulesoft, console, api, raml, api design
raml-console/raml-console.php Passed 13 tests
Analyzing the main PHP file in "RAML Console" version 1.0
69 characters long description:
This plugin allows you to embedd a RAML Console in your post or page.
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
Good job! No executable or dangerous file extensions detected59,458 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 8,451 | 20,991 | 51,317 |
CSS | 2 | 1,473 | 587 | 7,962 |
PHP | 2 | 94 | 113 | 125 |
HTML | 2 | 4 | 0 | 40 |
Markdown | 1 | 5 | 0 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 4 | |
▷ Named functions | 4 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.99MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 5.04KB | 2.30KB | ▼ 54.33% |
assets/screenshot-1.png | 180.87KB | 51.39KB | ▼ 71.59% |
assets/screenshot-3.png | 71.38KB | 23.55KB | ▼ 67.01% |
assets/icon-256x256.png | 5.04KB | 2.30KB | ▼ 54.33% |
img/mulesoft-icon.png | 3.01KB | 1.80KB | ▼ 40.24% |