Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.11ms] Passed 4 tests
Server-side resources used by REST API Enabler
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.08 ▼3.74 |
Dashboard /wp-admin | 3.44 ▲0.13 | 50.40 ▲1.44 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 50.77 ▲1.46 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 91.29 ▼5.66 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.89 ▼0.48 |
REST API Enabler /wp-admin/options-general.php?page=rest-api-enabler | 3.33 | 34.10 |
Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for REST API Enabler
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.24 ▼0.11 | 1.85 ▲0.03 | 40.88 ▼5.50 |
Dashboard /wp-admin | 2,194 ▲14 | 5.55 ▼0.13 | 93.01 ▼6.82 | 40.87 ▼1.59 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.03 ▲0.06 | 36.14 ▼5.16 | 34.20 ▼3.82 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 22.83 ▼0.76 | 634.34 ▼58.64 | 44.87 ▼15.16 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.30 ▲0.09 | 95.43 ▼6.76 | 46.05 ▼2.96 |
REST API Enabler /wp-admin/options-general.php?page=rest-api-enabler | 1,108 | 2.12 | 25.55 | 32.67 |
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-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
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)
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/rest-api-enabler/public/partials/rest-api-enabler-public-display.php
- > /wp-content/plugins/rest-api-enabler/admin/partials/rest-api-enabler-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
9 plugin tags: type, rest, taxonomy, category, custom...
rest-api-enabler/rest-api-enabler.php Passed 13 tests
The principal PHP file in "REST API Enabler" v. 1.1.0 is loaded by WordPress automatically on each request
91 characters long description:
Enable the WP REST API to work with custom post types, custom fields, and custom endpoints.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin654 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 274 | 829 | 534 |
CSS | 2 | 16 | 11 | 71 |
JavaScript | 2 | 25 | 34 | 49 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 5 | 9.62% |
▷ Public methods | 42 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 19.23% |
Functions | 3 | |
▷ Named functions | 3 | 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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected