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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼9.04ms] Passed 4 tests
Analyzing server-side resources used by WP Custom REST API Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.82 ▲0.36 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.05 ▼16.26 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.89 ▼3.03 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.21 ▼14.07 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.13 ▼2.78 |
WP Custom REST API Generator /wp-admin/options-general.php?page=wpcrag | 3.24 | 34.93 |
Server storage [IO: ▲2.86MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Custom REST API Generator: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲13 | 14.35 ▼0.01 | 1.73 ▼0.01 | 44.80 ▲4.86 |
Dashboard /wp-admin | 2,208 ▲31 | 5.56 ▼0.02 | 83.69 ▼7.22 | 37.66 ▼2.06 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.01 ▲0.04 | 36.21 ▲0.05 | 33.24 ▼3.89 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.39 ▲0.19 | 607.91 ▼68.07 | 48.25 ▼5.45 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.20 ▲0.03 | 95.23 ▼6.52 | 39.49 ▼5.10 |
WP Custom REST API Generator /wp-admin/options-general.php?page=wpcrag | 880 | 2.18 | 26.70 | 35.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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/wp-custom-rest-api-generator/admin/wpcrag_settings_api_function.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-custom-rest-api-generator/includes/wpcrag_fn_query.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: custom fields, admin, taxonomy, json, rest api...
wp-custom-rest-api-generator/wp_custom_rest_api_generator.php 77% from 13 tests
The main file in "WP Custom REST API Generator" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-custom-rest-api-generator.php" instead of "wp_custom_rest_api_generator.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin10,558 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 2,750 | 18 | 5,720 |
SVG | 3 | 0 | 12 | 4,479 |
PHP | 9 | 370 | 74 | 331 |
JavaScript | 1 | 16 | 4 | 28 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin