Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.76ms] Passed 4 tests
A check of server-side resources used by Plugin Name: Admin filter posts by year
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.62 ▼0.76 |
Dashboard /wp-admin | 3.31 ▲0.01 | 40.62 ▼11.83 |
Posts /wp-admin/edit.php | 3.27 ▼0.08 | 37.80 ▼8.01 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 73.11 ▼18.42 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.78 ▲0.89 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Plugin Name: Admin filter posts by year
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.26 ▼0.35 | 1.66 ▲0.04 | 41.11 ▲3.95 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.00 | 94.18 ▲1.91 | 41.67 ▲1.56 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 1.98 ▼0.01 | 39.57 ▼2.10 | 38.88 ▲0.30 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.11 ▼0.42 | 673.15 ▲62.45 | 59.41 ▼4.01 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.19 ▼0.03 | 112.28 ▲15.93 | 48.28 ▲7.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/admin-filter-posts-by-year/gwp_filter_posts_by_years.php:14
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== Plugin Name: Admin filter posts by year===
)
admin-filter-posts-by-year/gwp_filter_posts_by_years.php 85% from 13 tests
The entry point to "Plugin Name: Admin filter posts by year" version 2.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("admin-filter-posts-by-year.php" instead of "gwp_filter_posts_by_years.php")
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
Good job! No executable or dangerous file extensions detected75 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 58 | 75 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.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
There were not PNG files found in your plugin