Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼9.35ms] Passed 4 tests
Server-side resources used by REST Console Embed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.67 ▼5.20 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.23 ▼16.60 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.91 ▼3.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.47 ▼12.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.72 ▲3.47 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
REST Console Embed: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.35 ▼0.20 | 1.75 ▼0.17 | 43.49 ▼0.99 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▲0.01 | 81.00 ▼11.24 | 39.91 ▼3.49 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.11 | 39.19 ▲3.23 | 35.56 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.10 ▼0.04 | 667.31 ▲12.98 | 51.40 ▲3.21 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.17 ▼0.04 | 95.70 ▼8.66 | 41.18 ▼4.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rest-console-embed/rest-console-embed.php:56
- > 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 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 to be fixed:
- Screenshots: Screenshot #1 (REST Console embedded in a post.) image not found
rest-console-embed/rest-console-embed.php 92% from 13 tests
The main PHP file in "REST Console Embed" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,488 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 46 | 11 | 1,154 |
SVG | 1 | 0 | 0 | 135 |
JavaScript | 2 | 4 | 0 | 119 |
HTML | 1 | 0 | 0 | 41 |
PHP | 1 | 16 | 8 | 32 |
Markdown | 1 | 4 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
console/res/close-dark.png | 0.34KB | 0.16KB | ▼ 52.29% |
console/res/disclosure-dark.png | 0.38KB | 0.18KB | ▼ 51.55% |
screenshot-1.png | 39.16KB | 8.84KB | ▼ 77.42% |
console/res/disclosure-@2x.png | 0.38KB | 0.21KB | ▼ 44.92% |
console/res/return-@2x.png | 0.49KB | 0.27KB | ▼ 43.46% |