Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼8.16ms] Passed 4 tests
An overview of server-side resources used by GoodBarber
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 43.03 ▲7.40 |
Dashboard /wp-admin | 3.57 ▲0.23 | 47.43 ▼9.15 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 43.02 ▼4.88 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 80.77 ▼19.91 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.96 ▲1.29 |
GoodBarber Api /wp-admin/options-general.php?page=gb-json-api | 3.40 | 33.93 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
gb_api_key |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
gb_json_api_controllers |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GoodBarber
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.10 ▼0.19 | 1.70 ▲0.06 | 44.13 ▲4.65 |
Dashboard /wp-admin | 2,196 ▲22 | 5.51 ▼0.07 | 84.40 ▼1.46 | 38.76 ▼5.22 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.03 | 34.25 ▼2.58 | 35.23 ▼3.74 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.55 ▲0.65 | 680.54 ▲17.80 | 56.30 ▼2.77 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.29 ▲0.07 | 107.92 ▲4.50 | 47.68 ▲5.68 |
GoodBarber Api /wp-admin/options-general.php?page=gb-json-api | 840 | 1.99 | 24.74 | 28.91 |
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
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- gb_api_key
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- gb_json_api_controllers
- 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)
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/goodbarber/gb-json-api.php:95
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
goodbarber/gb-json-api.php 92% from 13 tests
This is the main PHP file of "GoodBarber" version 1.0.24, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("goodbarber.php" instead of "gb-json-api.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,243 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 348 | 393 | 2,239 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 26.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 118 | 94.40% |
▷ Protected methods | 7 | 5.60% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
PNG images were not found in this plugin