Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.30MB] [CPU: ▲5.08ms] Passed 4 tests
A check of server-side resources used by Rest Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.39 ▲3.75 |
Dashboard /wp-admin | 5.41 ▲2.11 | 49.92 ▲5.92 |
Posts /wp-admin/edit.php | 5.52 ▲2.17 | 50.10 ▲5.95 |
Add New Post /wp-admin/post-new.php | 6.81 ▲0.93 | 83.90 ▲6.13 |
Media Library /wp-admin/upload.php | 5.33 ▲2.10 | 38.00 ▲4.71 |
Rest Manager /wp-admin/options-general.php?page=settings_rest-manager | 5.30 | 43.02 |
Server storage [IO: ▲0.26MB] [DB: ▲0.92MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- You have illegally modified 1 file (7.33KB) outside of "wp-content/plugins/rest-manager/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/rest-manager-request.php
Filesystem: 45 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
rest-manager_version |
rest-manager_routes |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Rest Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.23 ▼1.12 | 1.89 ▲0.22 | 41.54 ▲0.06 |
Dashboard /wp-admin | 2,204 ▲12 | 5.83 ▲0.87 | 106.71 ▲2.50 | 37.94 ▼2.38 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.99 ▼0.06 | 39.01 ▲4.98 | 34.29 ▲0.84 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.28 ▼0.27 | 677.38 ▲67.56 | 60.97 ▲14.22 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.20 ▼0.04 | 97.11 ▲0.94 | 41.06 ▼2.73 |
Rest Manager /wp-admin/options-general.php?page=settings_rest-manager | 8,302 | 4.97 | 162.73 | 41.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.92MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 22898 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=settings_rest-manager
- > Notice in wp-content/plugins/rest-manager/includes/class-rest-manager-settings.php+1501
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/rest-manager/lib/rest-manager-request.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: wp-json, rest, rest-manager, resp-api, manager...
rest-manager/rest-manager.php Passed 13 tests
The primary PHP file in "Rest Manager" version 1.0.7 is used by WordPress to initiate all plugin functionality
84 characters long description:
Manage the all rest API route. diasble or filter plugins loaded on request rest api.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,532 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 722 | 1,189 | 1,600 |
CSS | 1 | 89 | 9 | 526 |
JavaScript | 4 | 37 | 123 | 210 |
JSON | 4 | 0 | 0 | 100 |
Markdown | 3 | 21 | 0 | 55 |
Sass | 1 | 11 | 7 | 41 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 23.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 225.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 7 | 6.93% |
▷ Public methods | 89 | 88.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 11.88% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/dist/images/switch.png | 3.01KB | 0.64KB | ▼ 78.70% |
admin/dist/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
admin/dist/images/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |