Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.83MB] [CPU: ▼37.45ms] Passed 4 tests
An overview of server-side resources used by WP List Gists
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.14 ▼0.33 | 19.47 ▼23.87 |
Dashboard /wp-admin | 3.19 ▼0.15 | 18.82 ▼42.54 |
Posts /wp-admin/edit.php | 3.19 ▼0.16 | 21.75 ▼20.53 |
Add New Post /wp-admin/post-new.php | 3.19 ▼2.69 | 20.57 ▼62.84 |
Media Library /wp-admin/upload.php | 3.19 ▼0.04 | 19.88 ▼12.14 |
Server storage [IO: ▲3.85MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 220 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
WP List Gists: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲15 | 14.67 ▲0.42 | 1.87 ▼0.05 | 42.56 ▼0.55 |
Dashboard /wp-admin | 2,217 ▲43 | 5.61 ▲0.07 | 93.26 ▼12.36 | 39.21 ▼4.23 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.02 ▼0.01 | 39.58 ▼1.79 | 33.16 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,574 ▲30 | 21.34 ▼3.77 | 666.46 ▲69.79 | 38.87 ▼32.81 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.23 ▼0.07 | 98.85 ▼2.03 | 39.55 ▼6.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-list-gists/functions/misc.php+83
Trying to access array offset on value of type resource
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 12× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/wp-list-gists/autoloader.php
- > /wp-content/plugins/wp-list-gists/models/model.php
- > /wp-content/plugins/wp-list-gists/views/dashboard.php
- > /wp-content/plugins/wp-list-gists/functions/cmb2.php
- > /wp-content/plugins/wp-list-gists/functions/misc.php
- > /wp-content/plugins/wp-list-gists/controllers/request.php
- > /wp-content/plugins/wp-list-gists/controllers/dashboard.php
- > /wp-content/plugins/wp-list-gists/config.php
- > /wp-content/plugins/wp-list-gists/functions/shortcode.php
- > /wp-content/plugins/wp-list-gists/templates/admin/plugin_options.php
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-list-gists/vendors/cmb2/init.php:85
- > PHP Notice
Undefined variable: test_root in wp-content/plugins/wp-list-gists/vendors/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-list-gists/vendors/cmb2/tests/cmb-tests-base.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-list-gists/includes/cmb/init.php:36
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-list-gists/vendors/cmb2/tests/cmb-tests-base.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-list-gists/vendors/cmb2/tests/cmb-tests-base.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-list-gists/vendors/cmb2/tests/cmb-tests-base.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-list-gists/vendors/cmb2/example-functions.php:53
- > PHP Warning
require_once(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wp-list-gists/vendors/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-list-gists/vendors/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% 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:
- Screenshots: Add images for these screenshots: #1 (WP List Gists setting screen.), #2 (Meta Box for dynamically selecting a Gist.)
wp-list-gists/wp-list-gists.class.php 85% from 13 tests
The entry point to "WP List Gists" version ... is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of " ...")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-list-gists.php" instead of "wp-list-gists.class.php")
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
Success! There were no dangerous files found in this plugin77,997 lines of code in 165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 0 | 0 | 47,741 |
PO File | 94 | 8,836 | 11,752 | 20,210 |
PHP | 35 | 1,314 | 2,355 | 4,914 |
CSS | 6 | 859 | 482 | 2,487 |
JavaScript | 9 | 218 | 269 | 1,031 |
Sass | 10 | 162 | 23 | 997 |
Markdown | 4 | 119 | 0 | 343 |
YAML | 2 | 8 | 0 | 136 |
JSON | 2 | 0 | 0 | 78 |
Bourne Shell | 1 | 14 | 5 | 60 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 24.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 147.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 1 | 3.70% |
▷ Concrete classes | 26 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 309 | |
▷ Static methods | 16 | 5.18% |
▷ Public methods | 298 | 96.44% |
▷ Protected methods | 3 | 0.97% |
▷ Private methods | 8 | 2.59% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 8 | 80.00% |
▷ Class constants | 2 | 20.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
30 compressed PNG files occupy 0.14MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendors/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
vendors/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/cmb/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendors/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
vendors/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |