Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼160.97ms] Passed 4 tests
A check of server-side resources used by Easily Generate Rest API Url
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.11 | 24.17 ▼4.05 |
Dashboard /wp-admin | 3.17 ▲0.10 | 34.50 ▼9.53 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 34.16 ▲0.16 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.09 | 77.08 ▼630.44 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 27.15 ▲0.68 |
Generate Rest API URL /wp-admin/options-general.php?page=generate_cuatom_restapi_url | 3.09 | 30.98 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easily Generate Rest API Url
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,784 ▲183 | 16.39 ▲0.77 | 8.50 ▲3.48 | 72.01 ▼5.18 |
Dashboard /wp-admin | 2,939 ▲43 | 6.11 ▼0.03 | 115.28 ▼15.33 | 166.83 ▼11.24 |
Posts /wp-admin/edit.php | 2,752 ▲12 | 3.22 ▼0.01 | 63.18 ▼3.84 | 136.72 ▼9.53 |
Add New Post /wp-admin/post-new.php | 3,748 ▼65 | 18.56 ▼0.67 | 417.13 ▼34.11 | 159.52 ▼4.84 |
Media Library /wp-admin/upload.php | 1,761 ▲9 | 5.52 ▼0.01 | 144.56 ▲2.41 | 189.52 ▼1.35 |
Generate Rest API URL /wp-admin/options-general.php?page=generate_cuatom_restapi_url | 1,440 | 2.54 | 53.33 | 137.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=generate_cuatom_restapi_url
- > Notice in wp-content/plugins/easily-generate-rest-api-url/admin/class-generate-rest-api-url-admin.php+383
Undefined variable: result_per_page
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=generate_cuatom_restapi_url
- > Notice in wp-content/plugins/easily-generate-rest-api-url/admin/class-generate-rest-api-url-admin.php+383
Undefined variable: result_category_list_api
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=generate_cuatom_restapi_url
- > Notice in wp-content/plugins/easily-generate-rest-api-url/admin/class-generate-rest-api-url-admin.php+383
Undefined variable: result_tags_list_api
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=generate_cuatom_restapi_url
- > Notice in wp-content/plugins/easily-generate-rest-api-url/admin/class-generate-rest-api-url-admin.php+383
Undefined variable: result_order_list_api
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=generate_cuatom_restapi_url
- > Notice in wp-content/plugins/easily-generate-rest-api-url/admin/class-generate-rest-api-url-admin.php+383
Undefined variable: result_orderby_list_api
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=generate_cuatom_restapi_url
- > Notice in wp-content/plugins/easily-generate-rest-api-url/admin/class-generate-rest-api-url-admin.php+383
Undefined variable: result_exclude_post_list_api
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=generate_cuatom_restapi_url
- > Notice in wp-content/plugins/easily-generate-rest-api-url/admin/class-generate-rest-api-url-admin.php+383
Undefined variable: result_include_post_list_api
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=generate_cuatom_restapi_url
- > Notice in wp-content/plugins/easily-generate-rest-api-url/admin/class-generate-rest-api-url-admin.php+383
Undefined variable: result_author_list_api
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=generate_cuatom_restapi_url
- > Notice in wp-content/plugins/easily-generate-rest-api-url/admin/class-generate-rest-api-url-admin.php+383
Undefined variable: result_status_list_api
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=generate_cuatom_restapi_url
- > Notice in wp-content/plugins/easily-generate-rest-api-url/admin/class-generate-rest-api-url-admin.php+383
Undefined variable: result_search_list_api
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/easily-generate-rest-api-url/public/partials/generate-rest-api-url-public-display.php
- > /wp-content/plugins/easily-generate-rest-api-url/admin/partials/generate-rest-api-url-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: rest api, rest api in wordpress, api, generate rest api url
easily-generate-rest-api-url/generate-rest-api-url.php 92% from 13 tests
"Easily Generate Rest API Url" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("easily-generate-rest-api-url.php" instead of "generate-rest-api-url.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin493 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 178 | 573 | 487 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 13.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.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 | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 19 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin