Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/faf/feedwordpress_advanced_filters.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; FeedWordPressAdvancedFilters has a deprecated constructor
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.13ms] Passed 4 tests
Analyzing server-side resources used by FeedWordPress Advanced Filters
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.56 ▼8.04 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.73 ▼4.80 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.99 ▼2.80 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.72 ▼20.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.83 ▼0.40 |
Server storage [IO: ▲0.33MB] [DB: ▲0.07MB] 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 |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
FeedWordPress Advanced Filters: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.33 ▼0.29 | 1.66 ▲0.07 | 39.77 ▼4.51 |
Dashboard /wp-admin | 2,195 ▲15 | 5.51 ▼0.19 | 87.38 ▼3.11 | 41.85 ▼2.71 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.96 ▼0.06 | 35.49 ▲0.70 | 33.34 ▼6.14 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.14 ▲4.87 | 706.74 ▲27.69 | 56.28 ▼17.46 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.15 ▲0.02 | 99.33 ▼1.83 | 46.35 ▼0.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% 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 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
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'fafFilter' not found in wp-content/plugins/faf/filters/remove_keywords.php:6
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/faf/feedwordpress_advanced_filters.php on line 864
- > PHP Fatal error
Uncaught Error: Class 'FeedWordPressAdminPage' not found in wp-content/plugins/faf/advanced_filters_overview.php:9
- > PHP Fatal error
Uncaught Error: Class 'fafFilter' not found in wp-content/plugins/faf/filters/expire_post.php:6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/faf/feedwordpress_advanced_filters.php on line 864
- > PHP Parse error
syntax error, unexpected 'array' (T_ARRAY) in wp-content/plugins/faf/dbugdata.php on line 55
- > PHP Fatal error
Uncaught Error: Class 'fafFilter' not found in wp-content/plugins/faf/filters/image_filters.php:5
- > PHP Fatal error
Uncaught Error: Class 'fafFilter' not found in wp-content/plugins/faf/filters/link_filter.php:10
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/faf/feedwordpress_advanced_filters.php on line 864
- > PHP Fatal error
Uncaught Error: Class 'fafFilter' not found in wp-content/plugins/faf/filters/remove_html.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: atom, syndication, feed, aggregation, rss...
faf/feedwordpress_advanced_filters.php 92% from 13 tests
The entry point to "FeedWordPress Advanced Filters" version 0.6.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("faf.php" instead of "feedwordpress_advanced_filters.php")
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
Everything looks great! No dangerous files found in this plugin5,603 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 583 | 497 | 5,374 |
CSS | 1 | 31 | 2 | 116 |
JavaScript | 1 | 35 | 14 | 113 |
PHP code Passed 2 tests
Analyzing 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.32 |
Average class complexity | 26.10 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 34 | 41.46% |
▷ Public methods | 50 | 60.98% |
▷ Protected methods | 12 | 14.63% |
▷ Private methods | 20 | 24.39% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-faf01.png | 79.52KB | 25.77KB | ▼ 67.60% |