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.18MB] [CPU: ▼5.09ms] Passed 4 tests
A check of server-side resources used by My Faves for WP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 40.20 ▼6.70 |
Dashboard /wp-admin | 3.49 ▲0.15 | 51.40 ▼15.42 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 50.81 ▲1.25 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 97.25 ▲0.50 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 41.24 ▲6.13 |
Tags /wp-admin/edit-tags.php?taxonomy=myfaves_tags&post_type=myfaves | 3.40 | 34.85 |
All Faves /wp-admin/edit.php?post_type=myfaves | 3.45 | 40.69 |
Add New /wp-admin/post-new.php?post_type=myfaves | 3.54 | 54.02 |
My Faves /wp-admin/options-general.php?page=myfaves-options | 3.38 | 35.24 |
Server storage [IO: ▲5.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by My Faves for WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲198 | 13.72 ▼0.93 | 5.26 ▲3.47 | 44.13 ▲0.21 |
Dashboard /wp-admin | 2,244 ▲56 | 4.84 ▼0.05 | 103.15 ▼14.02 | 41.09 ▼7.67 |
Posts /wp-admin/edit.php | 2,130 ▲38 | 1.99 ▼0.02 | 39.49 ▼1.75 | 35.62 ▼1.92 |
Add New Post /wp-admin/post-new.php | 1,552 ▲35 | 23.41 ▲5.95 | 657.39 ▲25.17 | 54.68 ▲5.00 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.24 ▲0.04 | 110.57 ▲8.04 | 48.19 ▲2.90 |
Tags /wp-admin/edit-tags.php?taxonomy=myfaves_tags&post_type=myfaves | 1,275 | 2.13 | 26.19 | 29.60 |
All Faves /wp-admin/edit.php?post_type=myfaves | 1,110 | 1.94 | 31.30 | 29.99 |
Add New /wp-admin/post-new.php?post_type=myfaves | 2,426 | 7.81 | 178.37 | 68.64 |
My Faves /wp-admin/options-general.php?page=myfaves-options | 915 | 2.04 | 23.63 | 24.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/my-faves/public/partials/myfaves-public-display.php
- > /wp-content/plugins/my-faves/admin/partials/myfaves-admin-display.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-faves/includes/service.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-faves/admin/myfaves-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-faves/includes/shortcodes/myfaves-shortcodes.php:178
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-faves/includes/functions.php:103
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-faves/includes/init.php:64
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues 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
Please fix the following attributes:
- Screenshots: Please a description for screenshot #5 in my-faves/assets to your readme.txt
my-faves/myfaves.php 85% from 13 tests
"My Faves for WP" version 1.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and 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: Name the main plugin file the same as the plugin slug ("my-faves.php" instead of "myfaves.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin16,811 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,026 |
JavaScript | 4 | 410 | 121 | 4,039 |
CSS | 4 | 1,449 | 18 | 3,017 |
PHP | 17 | 241 | 589 | 729 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 1.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 34 | |
▷ Named functions | 33 | 97.06% |
▷ Anonymous functions | 1 | 2.94% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin