Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▲1.15ms] Passed 4 tests
An overview of server-side resources used by WP REST API Controller
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 47.84 ▲4.53 |
Dashboard /wp-admin | 3.49 ▲0.18 | 49.86 ▼2.26 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 55.73 ▲8.92 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 84.42 ▼5.45 |
Media Library /wp-admin/upload.php | 3.41 ▲0.17 | 40.10 ▲7.79 |
REST API Controller /wp-admin/tools.php?page=wp-rest-api-controller-settings | 3.54 | 84.49 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
wp_rest_api_controller_post_types |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
wp_rest_api_controller_taxonomies |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP REST API Controller
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.39 ▼1.19 | 1.80 ▼0.05 | 37.47 ▼10.41 |
Dashboard /wp-admin | 2,210 ▲25 | 5.85 ▲0.95 | 102.62 ▼12.78 | 43.25 ▼0.14 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.02 ▼0.03 | 36.24 ▼2.99 | 34.17 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.20 ▼0.01 | 672.31 ▲9.19 | 55.39 ▲2.50 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.31 ▲0.11 | 98.66 ▼8.44 | 41.91 ▼1.65 |
REST API Controller /wp-admin/tools.php?page=wp-rest-api-controller-settings | 2,224 | 1.97 | 33.03 | 43.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
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
Please fix the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
include(WP_REST_API_CONTROLLER_PATHadmin/partials/settings-functions.php): failed to open stream: No such file or directory in wp-content/plugins/wp-rest-api-controller/admin/class-wp-rest-api-controller-admin.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-rest-api-controller/admin/class-wp-rest-api-controller-admin.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-rest-api-controller/admin/partials/settings-functions.php:34
- > PHP Warning
Use of undefined constant WP_REST_API_CONTROLLER_PATH - assumed 'WP_REST_API_CONTROLLER_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-rest-api-controller/admin/class-wp-rest-api-controller-admin.php on line 32
- > PHP Warning
include(): Failed opening 'WP_REST_API_CONTROLLER_PATHadmin/partials/settings-functions.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-rest-api-controller/admin/class-wp-rest-api-controller-admin.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-rest-api-controller/admin/partials/settings-page.php:12
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Requires at least: Invalid plugin version format
- Tags: You are using too many tags: 15 tag instead of maximum 10
wp-rest-api-controller/wp-rest-api-controller.php Passed 13 tests
"WP REST API Controller" version 2.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
WP REST API Controller enables a UI to toggle REST API endpoints on/off and customize key names.
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
Success! There were no dangerous files found in this plugin1,933 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 70 | 89 | 969 |
PHP | 5 | 297 | 289 | 679 |
CSS | 4 | 40 | 11 | 285 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 36.67 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 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 | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin