Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.64ms] Passed 4 tests
This is a short check of server-side resources used by GUI for List Category Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.70 ▼3.90 |
Dashboard /wp-admin | 3.32 ▲0.01 | 42.17 ▼4.84 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.83 ▼0.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 80.13 ▼12.91 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.46 ▼0.46 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for GUI for List Category Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.72 ▼0.58 | 1.77 ▲0.02 | 39.27 ▲0.64 |
Dashboard /wp-admin | 2,210 ▲22 | 5.06 ▲0.16 | 107.33 ▼4.57 | 38.68 ▼2.51 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.05 ▲0.04 | 39.27 ▼0.94 | 33.58 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,546 ▲7 | 23.26 ▲0.27 | 666.49 ▲45.28 | 35.41 ▼18.19 |
Media Library /wp-admin/upload.php | 1,425 ▲34 | 4.40 ▲0.17 | 101.35 ▲5.22 | 43.10 ▲0.35 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gui-for-lcp/admin/templates/tmpl-taxonomy-terms.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/class-walker-category-checklist.php): failed to open stream: No such file or directory in wp-content/plugins/gui-for-lcp/includes/class-gflcp-walker-category-checklist.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gui-for-lcp/admin/templates/tmpl-display-options.php:16
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/class-walker-category-checklist.php' (include_path='.:/usr/share/php') in wp-content/plugins/gui-for-lcp/includes/class-gflcp-walker-category-checklist.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gui-for-lcp/admin/templates/tmpl-modal-content.php:16
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gui-for-lcp/includes/class-gflcp-walker-category-checklist.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gui-for-lcp/admin/templates/tmpl-select-options.php:18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: list, gui, categories, posts
gui-for-lcp/gui-for-lcp.php Passed 13 tests
This is the main PHP file of "GUI for List Category Posts" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
124 characters long description:
This plugin adds a graphical shortcode creator for List Category Posts, accessible via the "LCP" button in WordPress editor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,886 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 98 | 439 | 1,142 |
CSS | 2 | 25 | 35 | 694 |
SVG | 1 | 0 | 0 | 49 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
An overview 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.06 |
Average class complexity | 3.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 77.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 22.73% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 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/assets/vendors/jquery-ui/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
admin/assets/vendors/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/assets/vendors/jquery-ui/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
admin/assets/vendors/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
admin/assets/vendors/jquery-ui/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |