Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Error in wp-content/plugins/wp-my-favourites/includes/class-wp-myfavourites-settings.php+45
Uncaught ArgumentCountError: Too few arguments to function Wp_MyFavourites_Settings::__construct(), 0 passed in wp-content/plugins/wp-my-favourites/includes/class-wp-myfavourites-activator.php on line 73 and exactly 2 expected in wp-content/plugins/wp-my-favourites/includes/class-wp-myfavourites-settings.php:45
Stack trace:
#0 wp-content/plugins/wp-my-favourites/includes/class-wp-myfavourites-activator.php(73): Wp_MyFavourites_Settings->__construct()
#1 wp-content/plugins/wp-my-favourites/wp-myfavourites.php(39): Wp_MyFavourites_Activator::activate()
#2 wp-includes/class-wp-hook.php(310): activate_wp_myfavourites()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.04ms] Passed 4 tests
An overview of server-side resources used by WP My Favourites
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.10 ▼1.96 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.34 ▼3.06 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 54.26 ▲11.65 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.51 ▼7.36 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.64 ▲0.24 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP My Favourites
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.25 ▼1.51 | 1.84 ▼0.65 | 43.31 ▼2.60 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.04 | 101.38 ▼6.49 | 39.31 ▲1.39 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.01 | 34.40 ▼3.58 | 34.18 ▼3.40 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.13 ▲4.83 | 665.86 ▲53.10 | 53.22 ▼0.39 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.03 | 100.75 ▼1.71 | 44.69 ▼2.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-my-favourites/admin/partials/wp-myfavourites-admin-display.php
- > /wp-content/plugins/wp-my-favourites/public/partials/wp-myfavourites-media-display.php
- > /wp-content/plugins/wp-my-favourites/public/partials/wp-myfavourites-posts-display.php
- > /wp-content/plugins/wp-my-favourites/admin/partials/settings/wp-myfavourites-favourite-media-settings.php
- > /wp-content/plugins/wp-my-favourites/public/partials/wp-myfavourites-comments-display.php
- > /wp-content/plugins/wp-my-favourites/public/partials/wp-myfavourites-public-display.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant WP_MYFAVOURITES_MEDIA_SELECT_LIMIT - assumed 'WP_MYFAVOURITES_MEDIA_SELECT_LIMIT' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-my-favourites/admin/partials/settings/wp-myfavourites-favourite-media-settings.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-my-favourites/admin/partials/settings/wp-myfavourites-plugin-settings.php:15
- > PHP Fatal error
Uncaught Error: Class 'Wp_MyFavourites_Settings' not found in wp-content/plugins/wp-my-favourites/admin/partials/settings/wp-myfavourites-favourite-posts-settings.php:17
- > PHP Fatal error
Uncaught Error: Class 'Wp_MyFavourites_Settings' not found in wp-content/plugins/wp-my-favourites/admin/partials/settings/wp-myfavourites-favourite-comments-settings.php:18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: theme development, media, posts, comments, favourites
wp-my-favourites/wp-myfavourites.php 85% from 13 tests
The main file in "WP My Favourites" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-my-favourites.php" instead of "wp-myfavourites.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,605 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 244 | 784 | 1,567 |
JavaScript | 8 | 33 | 102 | 912 |
CSS | 7 | 12 | 27 | 126 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 16.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 7 | 12.50% |
▷ Public methods | 50 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 40 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 40 | 100.00% |
▷ Public constants | 40 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/jqueryui/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
admin/css/jqueryui/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/css/jqueryui/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
admin/css/jqueryui/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
admin/css/jqueryui/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |