Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.58ms] Passed 4 tests
Analyzing server-side resources used by Post Filter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 44.93 ▲4.62 |
Dashboard /wp-admin | 3.36 ▲0.06 | 52.55 ▼0.51 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 50.29 ▲1.00 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 91.47 ▼24.91 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 39.66 ▼1.90 |
Post Filter /wp-admin/admin.php?page=post-filter-plugin-options | 3.25 | 35.66 |
Donate /wp-admin/admin.php?page=post-filter-about | 3.27 | 32.85 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Filter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲101 | 13.21 ▼1.01 | 1.66 ▼0.32 | 46.04 ▼0.22 |
Dashboard /wp-admin | 2,271 ▲65 | 5.84 ▲0.96 | 102.56 ▼17.29 | 36.94 ▼7.13 |
Posts /wp-admin/edit.php | 2,126 ▲47 | 2.00 ▼0.04 | 38.02 ▼3.16 | 36.36 ▲3.19 |
Add New Post /wp-admin/post-new.php | 1,583 ▲51 | 23.39 ▼0.09 | 630.92 ▼15.39 | 67.38 ▼4.17 |
Media Library /wp-admin/upload.php | 1,447 ▲50 | 4.23 ▲0.00 | 106.16 ▼21.40 | 48.24 ▼2.60 |
Post Filter /wp-admin/admin.php?page=post-filter-plugin-options | 988 | 1.83 | 33.99 | 44.59 |
Donate /wp-admin/admin.php?page=post-filter-about | 930 | 2.05 | 26.43 | 34.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
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
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/post-filter-filter-any-contents-with-specific-words/pf-about.php
- > /wp-content/plugins/post-filter-filter-any-contents-with-specific-words/cupcode-options.php
- > /wp-content/plugins/post-filter-filter-any-contents-with-specific-words/cupcode-post-filter.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Requires php: Invalid version format
- Screenshots: Please a description for screenshot #1 in post-filter-filter-any-contents-with-specific-words/assets to your readme.txt
post-filter-filter-any-contents-with-specific-words/cupcode-post-filter.php 85% from 13 tests
"Post Filter" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("post-filter-filter-any-contents-with-specific-words.php" instead of "cupcode-post-filter.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin512 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 59 | 14 | 261 |
JavaScript | 2 | 14 | 0 | 93 |
CSS | 2 | 35 | 4 | 91 |
PO File | 1 | 28 | 40 | 67 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 2.14KB | 0.93KB | ▼ 56.42% |
assets/banner-772x250.png | 92.47KB | 57.88KB | ▼ 37.41% |
assets/screenshot-1.png | 19.78KB | 10.01KB | ▼ 49.39% |