Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.62ms] Passed 4 tests
An overview of server-side resources used by Advanced Post List
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.03 ▼2.74 |
Dashboard /wp-admin | 3.41 ▲0.11 | 45.79 ▲0.32 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.45 ▼3.46 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 93.43 ▼8.58 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.68 ▲2.66 |
All Post Lists /wp-admin/edit.php?post_type=apl_post_list | 3.41 | 51.68 |
Settings /wp-admin/admin.php?page=apl_settings | 3.38 | 36.27 |
- New Post List /wp-admin/post-new.php?post_type=apl_post_list | 3.91 | 65.87 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 80 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_advanced-post-list_default |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
apl_notices |
widget_recent-posts |
widget_theysaidso_widget |
category_children |
widget_recent-comments |
apl_options |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Post List
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲141 | 13.61 ▼0.56 | 1.97 ▲0.36 | 41.62 ▼2.16 |
Dashboard /wp-admin | 2,254 ▲63 | 5.05 ▼0.85 | 109.97 ▲4.31 | 43.17 ▼6.64 |
Posts /wp-admin/edit.php | 2,137 ▲51 | 2.02 ▲0.02 | 41.53 ▲5.52 | 34.59 ▲3.07 |
Add New Post /wp-admin/post-new.php | 1,566 ▲52 | 18.25 ▲0.72 | 677.99 ▼20.25 | 58.22 ▲1.56 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.27 ▲0.04 | 123.94 ▲8.51 | 47.24 ▼0.67 |
All Post Lists /wp-admin/edit.php?post_type=apl_post_list | 1,151 | 2.41 | 46.54 | 27.06 |
Settings /wp-admin/admin.php?page=apl_settings | 1,385 | 2.46 | 62.18 | 37.59 |
- New Post List /wp-admin/post-new.php?post_type=apl_post_list | 5,329 | 5.67 | 264.52 | 104.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- apl_notices
- widget_advanced-post-list_default
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- category_children
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 | 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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /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 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
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-post-list/admin/view/display/notice-apl.php:13
- > 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 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: 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 esc_html__() in wp-content/plugins/advanced-post-list/templates/admin/meta-box/settings-import-export.php:14
- > 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/design-design.php:22
- > 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
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: There are too many tags (71 tag instead of maximum 10)
advanced-post-list/advanced-post-list.php 92% from 13 tests
"Advanced Post List" version 0.5.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 187 characters long)
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 plugin10,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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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
All PNG images should be compressed to minimize bandwidth usage for end users
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-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/css/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
admin/css/jquery-ui/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
admin/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |