Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.71MB] [CPU: ▼54.15ms] Passed 4 tests
A check of server-side resources used by Page Listing Categories
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 8.26 ▼34.77 |
Dashboard /wp-admin | 2.29 ▼1.01 | 12.34 ▼42.04 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 11.56 ▼53.68 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 10.85 ▼86.09 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 11.99 ▼18.76 |
Server storage [IO: ▲1.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_wp_plc |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Page Listing Categories
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.68 ▼0.75 | 4.92 ▲3.20 | 41.32 ▼3.02 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▲1.01 | 107.73 ▼14.75 | 42.27 ▼1.38 |
Posts /wp-admin/edit.php | 2,092 ▼7 | 2.14 ▲0.18 | 41.64 ▲0.92 | 36.46 ▼1.66 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.75 ▼5.27 | 659.93 ▼36.43 | 50.15 ▼8.15 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.15 ▼0.07 | 94.59 ▼12.29 | 39.96 ▼6.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method PageListingCategories::plc_widget_init() should not be called statically
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_wp_plc
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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
The following issues need your attention
- 9× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/page-listing-categories/includes/functions.php
- > /wp-content/plugins/page-listing-categories/templates/widget.template.php
- > /wp-content/plugins/page-listing-categories/templates/categories.template.php
- > /wp-content/plugins/page-listing-categories/includes/widgets/widget-list-categories.php
- > /wp-content/plugins/page-listing-categories/includes/model/get-categories.php
- > /wp-content/plugins/page-listing-categories/includes/view.php
- > /wp-content/plugins/page-listing-categories/templates/subcategories.template.php
- > /wp-content/plugins/page-listing-categories/page-listing-categories.php
- > /wp-content/plugins/page-listing-categories/includes/shortcodes/shortcode-list-categories.php
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
page-listing-categories/page-listing-categories.php Passed 13 tests
"Page Listing Categories" version 0.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
99 characters long description:
Provides the ability to list categories on any post or page, includes support for custom taxonomies
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected9,389 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 4 | 20 | 74 | 2,532 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP | 9 | 69 | 394 | 447 |
JavaScript | 2 | 27 | 32 | 213 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin