Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/get-json-api/function/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; getjsonapi_cycle_widget has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼59.68ms] Passed 4 tests
A check of server-side resources used by Get Json Api
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.31 ▼36.38 |
Dashboard /wp-admin | 2.10 ▼1.24 | 6.55 ▼55.65 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 5.95 ▼46.72 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 5.51 ▼99.98 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.54 ▼31.14 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_getjsonapi |
Browser metrics Passed 4 tests
A check of browser resources used by Get Json Api
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲151 | 13.83 ▼0.53 | 5.85 ▲4.11 | 37.96 ▼2.81 |
Dashboard /wp-admin | 2,227 ▲26 | 4.95 ▲0.04 | 111.65 ▼3.07 | 39.44 ▼8.08 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.12 ▲0.10 | 38.37 ▲0.72 | 37.24 ▲0.56 |
Add New Post /wp-admin/post-new.php | 1,532 ▲1 | 17.51 ▼5.92 | 642.86 ▼51.75 | 64.46 ▲0.87 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.31 ▲0.07 | 97.93 ▼8.68 | 42.05 ▼9.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/get-json-api/function/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; getjsonapi_cycle_widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_getjsonapi
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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)
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/get-json-api/function/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/get-json-api/function/shortcode.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/get-json-api/function/widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: json api, widget, json, shortcode
get-json-api/get-json-api.php Passed 13 tests
"Get Json Api" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
Retrieve the results of the API of a site that uses the plugin JSON API
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin210 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 29 | 22 | 183 |
CSS | 1 | 0 | 0 | 16 |
JavaScript | 2 | 0 | 8 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin/cycle/banner-772x2502.png | 15.95KB | 5.14KB | ▼ 67.81% |