Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.66MB] [CPU: ▼18.56ms] Passed 4 tests
This is a short check of server-side resources used by WP REST API Sidebars
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.40 ▼5.07 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.97 ▼9.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.72 ▼4.28 |
Add New Post /wp-admin/post-new.php | 3.27 ▼2.61 | 33.82 ▼55.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.90 ▲0.13 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
WP REST API Sidebars: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.33 ▼1.04 | 1.94 ▲0.18 | 42.07 ▼8.40 |
Dashboard /wp-admin | 2,203 ▲18 | 5.75 ▼0.06 | 100.76 ▼13.68 | 38.52 ▼3.49 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.05 | 39.39 ▼0.14 | 33.96 ▲0.52 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.11 ▲5.58 | 673.74 ▼3.49 | 54.83 ▲3.42 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.24 ▲0.04 | 97.47 ▼5.61 | 44.27 ▲1.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-rest-api-sidebars/templates/messages/incompatible-environment.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wp-rest-api-sidebars/src/controllers/class-sidebars-controller.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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: rest, sidebars, json, sidebar, widget...
wp-rest-api-sidebars/wp-rest-api-sidebars.php 92% from 13 tests
Analyzing the main PHP file in "WP REST API Sidebars" version 0.1.1
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/locale" does not exist
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
There were no executable files found in this plugin277 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 76 | 262 | 230 |
Markdown | 1 | 9 | 0 | 47 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 14 | |
▷ Static methods | 3 | 21.43% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 8 | |
▷ Global constants | 8 | 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 files were detected