Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.14MB] [CPU: ▼22.56ms] Passed 4 tests
This is a short check of server-side resources used by WP Favorite Posts Extended
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 28.79 ▼14.08 |
Dashboard /wp-admin | 3.23 ▼0.07 | 30.14 ▼24.62 |
Posts /wp-admin/edit.php | 3.30 ▼0.05 | 36.95 ▼18.69 |
Add New Post /wp-admin/post-new.php | 5.45 ▼0.44 | 69.69 ▼32.86 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 30.28 ▼7.47 |
WP Favorite Posts /wp-admin/options-general.php?page=wp-favorite-posts | 3.21 | 27.51 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Favorite Posts Extended
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲144 | 13.80 ▼0.48 | 9.57 ▲7.78 | 42.53 ▼0.59 |
Dashboard /wp-admin | 2,201 ▲24 | 5.63 ▲0.04 | 93.46 ▲5.95 | 45.28 ▲2.50 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.00 ▲0.03 | 40.16 ▼2.93 | 38.37 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.07 ▲0.04 | 666.90 ▲46.50 | 56.40 ▲1.91 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.25 ▲0.05 | 105.84 ▲4.09 | 43.99 ▲0.02 |
WP Favorite Posts /wp-admin/options-general.php?page=wp-favorite-posts | 1,274 | 1.75 | 25.76 | 26.76 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 30 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-favorite-posts
- > Notice in wp-content/plugins/wp-favorite-posts-extended/wpfp-admin.php+258
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-favorite-posts-extended/wpfp-your-favs-widget.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wpfp_get_options() in wp-content/plugins/wp-favorite-posts-extended/wpfp-page-template.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-favorite-posts-extended/wpfp-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-favorite-posts-extended/wp-favorite-posts.php:30
- > PHP Notice
Undefined variable: favorite_post_ids in wp-content/plugins/wp-favorite-posts-extended/wpfp-your-favs-widget.php on line 3
- > PHP Notice
Undefined variable: favorite_post_ids in wp-content/plugins/wp-favorite-posts-extended/wpfp-page-template.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-favorite-posts-extended/wpfp-widgets.php:97
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=wp-favorite-posts
- > Network (severe)
wp-content/plugins/wp-favorite-posts/img/icon_coffee.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=wp-favorite-posts
- > Network (severe)
wp-content/plugins/wp-favorite-posts/img/donate.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=wp-favorite-posts
- > Network (severe)
wp-content/plugins/wp-favorite-posts/wpfp.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=wp-favorite-posts
- > Network (severe)
wp-content/plugins/wp-favorite-posts/img/star.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=wp-favorite-posts
- > Network (severe)
wp-content/plugins/wp-favorite-posts/img/heart.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=wp-favorite-posts
- > Network (severe)
wp-content/plugins/wp-favorite-posts/img/bullet_star.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
wp-favorite-posts-extended/wp-favorite-posts.php 85% from 13 tests
This is the main PHP file of "WP Favorite Posts Extended" version 1.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: A good plugin description is longer than 10 characters (currently 0 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-favorite-posts-extended.php" instead of "wp-favorite-posts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin981 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 100 | 54 | 870 |
Bourne Shell | 1 | 19 | 8 | 59 |
JavaScript | 1 | 1 | 1 | 28 |
Markdown | 1 | 13 | 0 | 22 |
CSS | 1 | 0 | 0 | 2 |
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.35 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 33.33% |
Functions | 47 | |
▷ Named functions | 47 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
7 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 38.30KB | 13.87KB | ▼ 63.79% |
screenshot-3.png | 8.13KB | 3.79KB | ▼ 53.41% |
img/heart.png | 0.73KB | 0.83KB | 0.00% |
img/bullet_star.png | 0.32KB | 0.32KB | ▼ 1.81% |
img/icon_coffee.png | 11.33KB | 5.83KB | ▼ 48.59% |