Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.44ms] Passed 4 tests
This is a short check of server-side resources used by Posts filter multiselect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 34.12 ▼10.57 |
Dashboard /wp-admin | 3.40 ▲0.10 | 44.02 ▼5.37 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 51.89 ▲2.85 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 103.14 ▲9.87 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 40.42 ▲7.34 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
posts-filter-multiselect-db-version |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Posts filter multiselect
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.27 ▼1.12 | 4.56 ▲1.98 | 41.50 ▼3.99 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▼0.03 | 112.58 ▼2.61 | 43.93 ▲2.45 |
Posts /wp-admin/edit.php | 2,251 ▲162 | 2.15 ▲0.16 | 48.60 ▲12.56 | 64.17 ▲28.44 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.26 ▲5.01 | 703.72 ▲75.43 | 55.75 ▲4.62 |
Media Library /wp-admin/upload.php | 1,385 ▲3 | 4.18 ▼0.07 | 108.01 ▲6.26 | 42.78 ▼0.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
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)
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/posts-filter-multiselect/posts-filter-multiselect.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Screenshot #1 (Dropdown menu of posts filter when using plug-in.) image missing
posts-filter-multiselect/posts-filter-multiselect.php 92% from 13 tests
Analyzing the main PHP file in "Posts filter multiselect" version 2.2.0
Please take the time to 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 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin826 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 119 | 773 |
PO File | 1 | 14 | 28 | 32 |
CSS | 2 | 4 | 6 | 20 |
JavaScript | 1 | 0 | 19 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 72.00 |
▷ Minimum class complexity | 72.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 6.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/themes/redmond/images/ui-bg_glass_85_dfeffc_1x400.png | 0.33KB | 0.16KB | ▼ 53.08% |
css/themes/redmond/images/ui-icons_f9bd01_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/themes/redmond/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/themes/redmond/images/ui-icons_217bc0_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
screenshot-1.png | 9.00KB | 8.06KB | ▼ 10.42% |