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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▲0.66ms] Passed 4 tests
Server-side resources used by wp_wpcat_json_rest
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 39.40 ▲0.83 |
Dashboard /wp-admin | 3.60 ▲0.29 | 45.61 ▲0.83 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 49.68 ▲0.72 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 85.24 ▲0.61 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 37.20 ▲0.48 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for wp_wpcat_json_rest
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.28 ▼0.07 | 1.73 ▲0.12 | 37.89 ▼0.88 |
Dashboard /wp-admin | 2,186 ▲8 | 5.53 ▼0.17 | 83.00 ▼27.19 | 41.27 ▲1.65 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.95 ▼0.07 | 39.38 ▼2.30 | 35.77 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.14 ▼0.19 | 669.94 ▼36.29 | 72.21 ▲16.79 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.25 ▲0.05 | 96.27 ▲1.39 | 44.16 ▼2.49 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 7× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-wpcat-json-rest/includes/rest_register_functions.php
- > /wp-content/plugins/wp-wpcat-json-rest/includes/meta_update_callback.php
- > /wp-content/plugins/wp-wpcat-json-rest/wp_wpcat_json_rest.php
- > /wp-content/plugins/wp-wpcat-json-rest/includes/add_image_from_folder_callback.php
- > /wp-content/plugins/wp-wpcat-json-rest/includes/rest_api_field_functions.php
- > /wp-content/plugins/wp-wpcat-json-rest/includes/add_image_to_folder_callback.php
- > /wp-content/plugins/wp-wpcat-json-rest/includes/image_update_callback.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-wpcat-json-rest/includes/require_rest_auth.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function mvbplugins\\extmedialib\\add_filter() in wp-content/plugins/wp-wpcat-json-rest/includes/trigger_after_rest.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
wp-wpcat-json-rest/wp_wpcat_json_rest.php 77% from 13 tests
The primary PHP file in "wp_wpcat_json_rest" version 0.1.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-wpcat-json-rest.php" instead of "wp_wpcat_json_rest.php")
- Requires at least: Required version does not match the one declared in readme.txt ("5.3" instead of "5.9")
- Description: Please don't use more than 140 characters for the plugin description (currently 186 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,373 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 355 | 620 | 1,373 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 56.67% |
▷ Protected methods | 2 | 6.67% |
▷ Private methods | 11 | 36.67% |
Functions | 36 | |
▷ Named functions | 21 | 58.33% |
▷ Anonymous functions | 15 | 41.67% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin