Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼137.14ms] Passed 4 tests
A check of server-side resources used by 51Blocks JSON Schema Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.25 | 43.57 ▲19.80 |
Dashboard /wp-admin | 3.20 ▲0.14 | 44.52 ▼4.57 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 47.62 ▲10.98 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.11 | 88.89 ▼563.31 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 43.45 ▲8.35 |
Add New /wp-admin/post-new.php?post_type=json_schema | 3.18 | 46.24 |
All Schemas /wp-admin/edit.php?post_type=json_schema | 3.18 | 38.84 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for 51Blocks JSON Schema Generator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,757 ▲161 | 15.94 ▲0.41 | 10.64 ▲1.01 | 49.68 ▼3.55 |
Dashboard /wp-admin | 3,014 ▲83 | 5.98 ▼0.21 | 138.23 ▼8.37 | 117.62 ▲3.00 |
Posts /wp-admin/edit.php | 2,780 ▲41 | 2.72 ▲0.03 | 74.30 ▲2.32 | 102.68 ▲13.30 |
Add New Post /wp-admin/post-new.php | 1,709 ▲37 | 18.43 ▼0.49 | 380.62 ▼11.85 | 108.68 ▼6.73 |
Media Library /wp-admin/upload.php | 1,851 ▲41 | 5.07 ▲0.05 | 155.86 ▲6.76 | 128.43 ▼5.40 |
Add New /wp-admin/post-new.php?post_type=json_schema | 3,374 | 4.08 | 132.94 | 103.59 |
All Schemas /wp-admin/edit.php?post_type=json_schema | 1,444 | 2.63 | 66.00 | 74.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/51blocks-json-schema/includes/custom-post-type.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
- Plugin Name: You should set the name of your plugin on the first line (
=== 51blocks-json-schema ===
)
51blocks-json-schema/json-schema-generator.php 85% from 13 tests
The principal PHP file in "51Blocks JSON Schema Generator" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("51blocks-json-schema.php" instead of "json-schema-generator.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin574 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 159 | 53 | 484 |
JavaScript | 1 | 35 | 5 | 89 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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 files were detected