Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/custom-wp-rest-api/admin/settings.php+131
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.18MB] [CPU: ▼4.93ms] Passed 4 tests
An overview of server-side resources used by Ultimate Endpoints With Rest Api
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 42.26 ▼1.77 |
Dashboard /wp-admin | 3.53 ▲0.23 | 48.15 ▼2.90 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 51.47 ▲1.86 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 84.67 ▼16.91 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 45.63 ▲9.27 |
Walk Through /wp-admin/admin.php?page=wcra_api_walk_help | 3.36 | 33.73 |
Secret List /wp-admin/admin.php?page=wcra_api_list | 3.37 | 47.62 |
New Api Secret /wp-admin/admin.php?page=wcra_new_api | 3.36 | 34.17 |
Endpoints /wp-admin/admin.php?page=wcra_api_endpoints | 3.40 | 34.88 |
Recent Activity /wp-admin/admin.php?page=wcra_api_recent_activity | 3.36 | 33.49 |
Log /wp-admin/admin.php?page=wcra_api_log | 3.42 | 31.41 |
Settings /wp-admin/admin.php?page=wcra_api_settings | 3.39 | 32.83 |
Server storage [IO: ▲1.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 78 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_wcra_notification_log |
wp_wcra_api_endpoints |
wp_wcra_api_base |
wp_wcra_api_log |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
wcra_settings_meta |
Browser metrics Passed 4 tests
An overview of browser requirements for Ultimate Endpoints With Rest Api
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲162 | 13.40 ▼0.78 | 7.60 ▲5.71 | 40.50 ▼1.91 |
Dashboard /wp-admin | 2,234 ▲54 | 5.70 ▲0.03 | 92.94 ▲2.59 | 74.53 ▲32.20 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.04 ▲0.02 | 34.87 ▼4.38 | 33.69 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,723 ▲197 | 22.35 ▼0.79 | 695.32 ▼37.15 | 66.73 ▼1.61 |
Media Library /wp-admin/upload.php | 1,454 ▲54 | 4.29 ▲0.09 | 102.41 ▼1.63 | 73.78 ▲28.76 |
Walk Through /wp-admin/admin.php?page=wcra_api_walk_help | 1,429 | 9.13 | 319.41 | 93.59 |
Secret List /wp-admin/admin.php?page=wcra_api_list | 922 | 2.05 | 30.77 | 39.04 |
New Api Secret /wp-admin/admin.php?page=wcra_new_api | 911 | 2.05 | 26.02 | 37.30 |
Endpoints /wp-admin/admin.php?page=wcra_api_endpoints | 1,022 | 1.66 | 26.53 | 57.69 |
Recent Activity /wp-admin/admin.php?page=wcra_api_recent_activity | 921 | 2.17 | 26.26 | 33.07 |
Log /wp-admin/admin.php?page=wcra_api_log | 1,016 | 1.69 | 26.01 | 28.90 |
Settings /wp-admin/admin.php?page=wcra_api_settings | 1,030 | 1.78 | 24.84 | 35.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_wcra_notification_log
- Zombie WordPress options detected upon uninstall: 7 options
- wcra_settings_meta
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 0% 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
- > GET request to /wp-admin/admin.php?page=wcra_api_settings
- > Notice in wp-content/plugins/custom-wp-rest-api/admin/wpr_api_settings.php+71
Undefined index: wpr_set_auth_check_by_admin
SRP 0% 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
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/custom-wp-rest-api/public/partials/customwprest-public-display.php
- > /wp-content/plugins/custom-wp-rest-api/admin/partials/customwprest-admin-display.php
- > /wp-content/plugins/custom-wp-rest-api/includes/demo.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wcra_admin_page_tabs() in wp-content/plugins/custom-wp-rest-api/admin/header.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wcra_admin_page_tabs() in wp-content/plugins/custom-wp-rest-api/admin/header.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wcra_api_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).tooltip is not a function" "TypeError: $(...).tooltip is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/custom-wp-rest-api/admin/js/customwprest-admin.js?ver=6.3.1:52:32)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wcra_api_settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).tooltip is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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 your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== custom-wp-rest-api ===
)
custom-wp-rest-api/wp-custom-rest-api.php 85% from 13 tests
The main PHP file in "Ultimate Endpoints With Rest Api" ver. 2.2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("custom-wp-rest-api.php" instead of "wp-custom-rest-api.php")
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
There were no executable files found in this plugin10,478 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 4 | 30 | 22 | 2,528 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP | 31 | 433 | 654 | 1,710 |
JavaScript | 2 | 20 | 55 | 43 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 4.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 35 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.50% |
Functions | 57 | |
▷ Named functions | 55 | 96.49% |
▷ Anonymous functions | 2 | 3.51% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/geometry2.png | 2.09KB | 2.44KB | 0.00% |
admin/img/menu_icon.png | 1.71KB | 0.80KB | ▼ 53.17% |