Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.99MB] [CPU: ▼137.50ms] Passed 4 tests
A check of server-side resources used by Advanced Post List
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.89 | 28.50 ▲5.52 |
Dashboard /wp-admin | 4.08 ▲1.02 | 38.28 ▲0.21 |
Posts /wp-admin/edit.php | 4.14 ▲1.03 | 36.01 ▲5.17 |
Add New Post /wp-admin/post-new.php | 6.47 ▲1.03 | 74.21 ▼560.91 |
Media Library /wp-admin/upload.php | 4.03 ▲1.03 | 29.21 ▲5.66 |
All Post Lists /wp-admin/edit.php?post_type=apl_post_list | 4.11 | 32.14 |
Settings /wp-admin/admin.php?page=apl_settings | 4.49 | 28.59 |
- New Post List /wp-admin/post-new.php?post_type=apl_post_list | 5.05 | 54.52 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 80 new files
Database: no new tables, 4 new options
New WordPress options |
---|
apl_notices |
category_children |
widget_advanced-post-list_default |
apl_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Post List
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,739 ▲112 | 15.57 ▼0.07 | 5.24 ▼0.11 | 71.50 ▼2.96 |
Dashboard /wp-admin | 2,993 ▲97 | 6.20 ▲0.08 | 118.12 ▼14.27 | 168.93 ▼1.54 |
Posts /wp-admin/edit.php | 2,781 ▲38 | 3.25 ▲0.18 | 64.11 ▲0.69 | 136.39 ▼7.29 |
Add New Post /wp-admin/post-new.php | 3,749 ▼66 | 18.90 ▼0.43 | 425.76 ▼29.35 | 159.76 ▼8.65 |
Media Library /wp-admin/upload.php | 1,813 ▲61 | 5.53 ▲0.03 | 144.50 ▲8.13 | 178.23 ▲0.54 |
All Post Lists /wp-admin/edit.php?post_type=apl_post_list | 1,551 | 3.61 | 99.97 | 117.19 |
Settings /wp-admin/admin.php?page=apl_settings | 1,881 | 3.77 | 73.15 | 156.10 |
- New Post List /wp-admin/post-new.php?post_type=apl_post_list | 6,403 | 7.28 | 241.07 | 248.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 3 options in the database
- apl_notices
- category_children
- widget_advanced-post-list_default
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/advanced-post-list/templates/admin/meta-box/design/dialog-internal-shortcodes.php
- > /wp-content/plugins/advanced-post-list/templates/admin/meta-box/settings-info.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/advanced-post-list/advanced-post-list.php:44
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-post-list/includes/class/class-apl-widget.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-post-list/includes/hooks.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advanced-post-list/templates/admin/meta-box/settings-general.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-post-list/templates/admin/settings-page.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/advanced-post-list/templates/admin/meta-box/post-list-filter.php:23
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-post-list/admin/view/display/notice-default.php:13
- > PHP Warning
Use of undefined constant APL_VERSION - assumed 'APL_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-post-list/templates/admin/meta-box/settings-info.php on line 32
- > PHP Warning
require_once(APL_DIRadmin/functions-notice.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-post-list/admin/class-apl-notices.php on line 122
- > PHP Warning
Use of undefined constant APL_DIR - assumed 'APL_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-post-list/admin/class-apl-notices.php on line 122
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 71 tag instead of maximum 10
advanced-post-list/advanced-post-list.php 92% from 13 tests
The principal PHP file in "Advanced Post List" v. 0.5.6.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 187 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected10,639 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 1,179 | 4,892 | 7,313 |
PO File | 2 | 416 | 485 | 1,412 |
CSS | 8 | 97 | 86 | 955 |
JavaScript | 8 | 136 | 390 | 790 |
XML | 1 | 0 | 0 | 169 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 55.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 227.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 201 | |
▷ Static methods | 4 | 1.99% |
▷ Public methods | 129 | 64.18% |
▷ Protected methods | 1 | 0.50% |
▷ Private methods | 71 | 35.32% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
admin/css/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
admin/css/jquery-ui/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
admin/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/css/jquery-ui/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |