Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼151.11ms] Passed 4 tests
An overview of server-side resources used by One Call - WP REST API Extension
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.05 | 36.41 ▲2.24 |
Dashboard /wp-admin | 3.12 ▲0.07 | 54.55 ▲5.59 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 49.78 ▲14.15 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 98.72 ▼608.60 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 36.89 ▼3.65 |
One Call API Settings /wp-admin/options-general.php?page=ac-ocapi-settings | 3.08 | 31.56 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 2 new options
New WordPress options |
---|
ac_ocapi_wp_defualt_filds |
ac_ocapi_options |
Browser metrics Passed 4 tests
A check of browser resources used by One Call - WP REST API Extension
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.90 ▲0.13 | 11.12 ▲1.02 | 49.00 ▲3.29 |
Dashboard /wp-admin | 2,974 ▲40 | 5.91 ▼0.33 | 166.67 ▲15.44 | 115.88 ▲1.10 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 64.26 ▲1.01 | 89.89 ▲4.90 |
Add New Post /wp-admin/post-new.php | 1,597 ▼75 | 18.78 ▲0.05 | 417.52 ▲43.08 | 108.26 ▼1.98 |
Media Library /wp-admin/upload.php | 1,830 ▲23 | 5.05 ▲0.03 | 164.92 ▲15.59 | 117.30 ▼2.29 |
One Call API Settings /wp-admin/options-general.php?page=ac-ocapi-settings | 1,788 | 2.09 | 58.82 | 77.23 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 2 options in the database
- ac_ocapi_options
- ac_ocapi_wp_defualt_filds
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/one-call/ocapi-includes/ocapi-admin-page.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
4 plugin tags: wpi rest api prefix, wp rest api all post fields details, wp rest api filter fields, wp rest api featured image
one-call/one-call.php 92% from 13 tests
Analyzing the main PHP file in "One Call - WP REST API Extension" version 1.1.1
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 159 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected396 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 54 | 108 | 394 |
JavaScript | 1 | 0 | 1 | 2 |
CSS | 1 | 0 | 1 | 0 |
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.41 |
Average class complexity | 15.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 20 | |
▷ Static methods | 2 | 10.00% |
▷ Public methods | 20 | 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 | 3 | |
▷ Global constants | 3 | 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
There are no PNG files in this plugin