Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.17ms] Passed 4 tests
An overview of server-side resources used by Filtering Post
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.46 ▼0.45 |
Dashboard /wp-admin | 3.33 ▼0.01 | 45.18 ▼18.84 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.89 ▲2.50 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 77.87 ▼15.87 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 38.52 ▲5.82 |
Filtering Post /wp-admin/options-general.php?page=filtering-post/inc/class_fp.php | 3.27 | 30.95 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Filtering Post
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲126 | 13.57 ▼0.86 | 13.80 ▲11.97 | 52.09 ▲9.01 |
Dashboard /wp-admin | 2,206 ▲29 | 5.63 ▼0.03 | 84.67 ▼0.99 | 38.80 ▼2.69 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.98 ▲0.00 | 34.27 ▼1.08 | 32.20 ▼2.85 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.05 ▼0.02 | 679.91 ▲79.92 | 65.54 ▲16.20 |
Media Library /wp-admin/upload.php | 1,405 ▲11 | 4.23 ▲0.03 | 97.42 ▲2.80 | 44.31 ▲0.21 |
Filtering Post /wp-admin/options-general.php?page=filtering-post/inc/class_fp.php | 830 | 2.01 | 26.31 | 25.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/filtering-post/inc/class_fp.php
- > /wp-content/plugins/filtering-post/inc/class_fpfunctions.php
- > /wp-content/plugins/filtering-post/inc/optionsfp.php
- > /wp-content/plugins/filtering-post/fp_plugin.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/filtering-post/inc/showpost-template.php on line 89
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Administration Menu to create the views), #2 (Extended Options for each Shortcode Created), #3 (Adding a view Shortcode to a page.)
filtering-post/fp_plugin.php 92% from 13 tests
The main PHP script in "Filtering Post" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("filtering-post.php" instead of "fp_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,142 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 73 | 241 | 764 |
PHP | 7 | 45 | 21 | 277 |
CSS | 3 | 13 | 12 | 101 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 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
4 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 74.38KB | 21.45KB | ▼ 71.16% |
screenshot-2.png | 117.38KB | 34.22KB | ▼ 70.85% |
screenshot-3.png | 56.64KB | 17.00KB | ▼ 70.00% |
inc/img/no-img.png | 15.64KB | 8.68KB | ▼ 44.50% |