Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.91ms] Passed 4 tests
An overview of server-side resources used by Advanced WP REST API
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.01 ▲0.79 |
Dashboard /wp-admin | 3.36 ▲0.05 | 43.47 ▼2.80 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 43.09 ▼1.97 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.79 ▼3.67 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.08 ▲4.96 |
Advanced WP REST API /wp-admin/options-general.php?page=awpr_settings | 3.25 | 36.79 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced WP REST API
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.23 ▼0.12 | 1.68 ▲0.02 | 46.86 ▲7.11 |
Dashboard /wp-admin | 2,201 ▲20 | 5.64 ▼0.02 | 83.70 ▼13.88 | 35.34 ▼4.92 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.01 ▲0.02 | 33.82 ▼2.17 | 38.50 ▲3.57 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 18.10 ▼5.19 | 592.33 ▼108.71 | 66.19 ▲11.95 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▼0.00 | 96.04 ▼10.01 | 40.61 ▼4.20 |
Advanced WP REST API /wp-admin/options-general.php?page=awpr_settings | 842 | 2.00 | 23.48 | 29.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-wp-rest-api/apis/class-gwl-register-route-api.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-wp-rest-api/apis/class-gwl-register-route-api.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (backend-settings.png) image not found
advanced-wp-rest-api/advanced-wp-rest-api.php Passed 13 tests
The entry point to "Advanced WP REST API" version 1.0.0 is a PHP file that has certain tags in its header comment area
48 characters long description:
This plugin register multiple REST API endpoints
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected320 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 43 | 81 | 311 |
CSS | 1 | 0 | 1 | 9 |
PHP code Passed 2 tests
This is a short overview 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.26 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 5.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.16MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
backend-settings.png | 80.96KB | 20.60KB | ▼ 74.55% |
screenshot-1.png | 80.96KB | 20.60KB | ▼ 74.55% |