Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.62MB] [CPU: ▼15.64ms] Passed 4 tests
Server-side resources used by WPRestApiExtensions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.55 ▼0.42 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.11 ▼2.40 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 46.03 ▲2.97 |
Add New Post /wp-admin/post-new.php | 3.24 ▼2.64 | 37.96 ▼58.42 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.29 ▼1.31 |
WPRestApiExtensions /wp-admin/tools.php?page=WPRestApiExtensionsAdmin | 3.24 | 35.26 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
WPRestApiExtensions_MESSAGES |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPRestApiExtensions
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.18 ▼1.32 | 1.62 ▼0.33 | 39.43 ▼5.50 |
Dashboard /wp-admin | 2,207 ▲19 | 5.84 ▲0.04 | 100.17 ▼11.30 | 39.47 ▼6.99 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.04 | 38.98 ▼4.87 | 36.99 ▲2.78 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.05 ▼0.25 | 664.45 ▲24.62 | 57.02 ▼1.04 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.22 ▲0.04 | 105.14 ▲5.82 | 46.04 ▼0.43 |
WPRestApiExtensions /wp-admin/tools.php?page=WPRestApiExtensionsAdmin | 838 | 2.19 | 24.76 | 28.82 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 6× PHP files trigger server errors when accessed directly:
- > http
//wp.com/wp-json/wprestapiextensions/v1/post/?
- > PHP Fatal error
Uncaught Error: Class 'WPRestApiExtensions' not found in wp-content/plugins/wprestapiextensions/includes/admin.php:3
- > http
//wp.com/wp-json/wprestapiextensions/v1/tag/?
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprestapiextensions/includes/main.php:388
- > http
//wp.com/wp-json/wprestapiextensions/v1/posts/?
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprestapiextensions/includes/main.php:388
- > http
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: toggle
wprestapiextensions/WPRestApiExtensions.php 92% from 13 tests
The primary PHP file in "WPRestApiExtensions" version 1.0.6 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wprestapiextensions.php" instead of "WPRestApiExtensions.php")
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
No dangerous file extensions were detected429 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 168 | 129 | 388 |
Markdown | 1 | 18 | 0 | 41 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 19 | 100.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
No PNG images were found in this plugin