Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.25MB] [CPU: ▼151.33ms] Passed 4 tests
An overview of server-side resources used by JSON REST API Subscriptions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 33.03 ▲10.36 |
Dashboard /wp-admin | 3.13 ▲0.08 | 42.20 ▲4.61 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 45.56 ▼0.91 |
Add New Post /wp-admin/post-new.php | 4.21 ▼1.23 | 41.44 ▼609.22 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 32.31 ▲0.22 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
jras_deleted_posts |
Browser metrics Passed 4 tests
An overview of browser requirements for JSON REST API Subscriptions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.85 ▲0.24 | 8.76 ▼0.46 | 49.44 ▼3.32 |
Dashboard /wp-admin | 2,973 ▲42 | 5.90 ▼0.02 | 133.71 ▼17.87 | 107.17 ▼7.23 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.84 ▲0.00 | 64.50 ▼0.84 | 90.67 ▲2.10 |
Add New Post /wp-admin/post-new.php | 1,676 ▲4 | 18.81 ▼0.22 | 365.65 ▼33.59 | 105.24 ▼7.33 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.04 ▲0.03 | 149.36 ▲6.34 | 119.06 ▼7.71 |
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
- This plugin did not uninstall successfully, leaving 1 option in the database
- jras_deleted_posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/json-rest-api-subscriptions/lib/endpoints/class-jras-subscriptions-controller.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/json-rest-api-subscriptions/plugin.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
9 plugin tags: api webhooks, rest api, json rest api, rest, webhooks...
json-rest-api-subscriptions/plugin.php 92% from 13 tests
The entry point to "JSON REST API Subscriptions" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("json-rest-api-subscriptions.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected784 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 210 | 278 | 671 |
Markdown | 1 | 40 | 0 | 113 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 24.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 26 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.14% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin