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.12MB] [CPU: ▼9.55ms] Passed 4 tests
Analyzing server-side resources used by Only REST API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▼0.60 | 25.88 ▼14.31 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.51 ▼5.76 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.10 ▼4.99 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.87 ▼13.13 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.61 ▼3.40 |
Only REST API /wp-admin/options-general.php?page=only-rest-api | 3.23 | 26.48 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Only REST API
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,433 ▼328 | 14.31 ▼0.05 | 0.51 ▼1.14 | 0.34 ▼40.26 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▲0.02 | 98.72 ▲3.69 | 44.03 ▲4.52 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.06 | 35.89 ▼1.73 | 33.59 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.12 ▲0.12 | 650.01 ▼53.89 | 65.20 ▲7.76 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.23 ▲0.02 | 100.16 ▼9.06 | 46.20 ▲1.41 |
Only REST API /wp-admin/options-general.php?page=only-rest-api | 816 | 1.99 | 24.55 | 31.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: api, rest, json, only
only-rest-api/only-rest-api.php Passed 13 tests
The entry point to "Only REST API" version 1.0.0 is a PHP file that has certain tags in its header comment area
64 characters long description:
Redirects all front end, non-REST API requests to a single page.
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
Good job! No executable or dangerous file extensions detected285 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 56 | 126 | 153 |
Markdown | 1 | 42 | 0 | 87 |
JavaScript | 1 | 4 | 3 | 25 |
JSON | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.36 |
▷ 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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 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 | 1 | |
▷ Global constants | 1 | 100.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 images were found in this plugin