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.01MB] [CPU: ▼5.60ms] Passed 4 tests
Server-side resources used by REST API Console
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 45.46 ▲1.01 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.88 ▼2.63 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.57 ▼1.28 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.72 ▼19.51 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 45.89 ▲5.94 |
REST API Console /wp-admin/tools.php?page=rest_api_console | 3.22 | 33.62 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for REST API Console
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.19 ▼0.18 | 1.81 ▲0.11 | 44.53 ▲4.95 |
Dashboard /wp-admin | 2,196 ▲22 | 5.54 ▲0.00 | 89.33 ▼3.03 | 40.03 ▲3.72 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.02 ▼0.00 | 39.29 ▲2.56 | 34.65 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.08 ▼0.11 | 676.12 ▼3.67 | 58.51 ▼12.84 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.26 ▲0.02 | 100.44 ▼2.16 | 40.59 ▼7.63 |
REST API Console /wp-admin/tools.php?page=rest_api_console | 5,282 | 5.40 | 106.02 | 91.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/rest-api-console/rest-api-console.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/rest-api-console/templates/views/app.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: api-console, rest-api
rest-api-console/rest-api-console.php 92% from 13 tests
The principal PHP file in "REST API Console" v. 2.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/language")
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
No dangerous file extensions were detected7,176 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 26 | 1,249 | 508 | 4,761 |
Sass | 3 | 255 | 4 | 1,104 |
CSS | 2 | 34 | 13 | 1,074 |
SVG | 1 | 0 | 0 | 135 |
PHP | 2 | 17 | 11 | 82 |
Markdown | 1 | 15 | 0 | 20 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
res/close-@2x.png | 0.38KB | 0.19KB | ▼ 50.76% |
res/return-@2x.png | 0.49KB | 0.27KB | ▼ 43.46% |
res/search.png | 0.36KB | 0.25KB | ▼ 29.16% |
res/close.png | 0.30KB | 0.16KB | ▼ 45.60% |
res/disclosure-@2x.png | 0.38KB | 0.21KB | ▼ 44.92% |