Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▲0.74ms] Passed 4 tests
Analyzing server-side resources used by Favorites
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.49 | 43.02 ▲0.50 |
Dashboard /wp-admin | 3.71 ▲0.40 | 45.56 ▼3.75 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 52.03 ▲3.74 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 100.27 ▲12.75 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 38.68 ▲2.47 |
Favorites /wp-admin/options-general.php?page=simple-favorites | 3.57 | 33.18 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 112 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
simplefavorites_display |
widget_recent-posts |
theysaidso_admin_options |
simplefavorites_dependencies |
db_upgraded |
simplefavorites_cache_enabled |
widget_recent-comments |
simplefavorites_users |
Browser metrics Passed 4 tests
An overview of browser requirements for Favorites
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲171 | 13.70 ▼0.73 | 9.70 ▲7.78 | 42.85 ▼4.21 |
Dashboard /wp-admin | 2,209 ▲24 | 6.00 ▲0.16 | 104.76 ▼0.04 | 36.65 ▼8.34 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.02 ▼0.01 | 39.43 ▲2.59 | 34.48 ▲1.22 |
Add New Post /wp-admin/post-new.php | 6,446 ▲4,913 | 20.14 ▼3.35 | 844.81 ▲168.22 | 55.86 ▼4.29 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.23 ▲0.05 | 93.63 ▼10.96 | 41.29 ▼5.48 |
Favorites /wp-admin/options-general.php?page=simple-favorites | 943 | 2.18 | 48.52 | 35.10 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 10 options
- simplefavorites_users
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- simplefavorites_cache_enabled
- db_upgraded
- simplefavorites_display
- can_compress_scripts
- simplefavorites_dependencies
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 41× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/favorites/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/favorites/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/favorites/vendor/composer/installers/src/Composer/Installers/Installer.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/favorites/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/favorites/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/favorites/vendor/composer/installers/tests/Composer/Installers/Test/TestCase.php:21
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/favorites/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/favorites/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/favorites/app/Views/settings/settings-general.php:1
- > PHP Fatal error
Uncaught Error: Class 'Favorites\\Entities\\FavoriteList\\FavoriteListTypeBase' not found in wp-content/plugins/favorites/app/Entities/FavoriteList/FavoriteListTypeCustom.php:10
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
favorites/favorites.php Passed 13 tests
"Favorites" version 2.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
Simple and flexible favorite buttons for any post type.
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 plugin6,225 lines of code in 102 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 87 | 650 | 1,547 | 4,106 |
JavaScript | 3 | 104 | 210 | 843 |
PO File | 2 | 299 | 327 | 664 |
CSS | 3 | 48 | 8 | 293 |
JSON | 3 | 0 | 0 | 139 |
Markdown | 1 | 32 | 0 | 130 |
XML | 1 | 2 | 0 | 23 |
SVG | 1 | 0 | 0 | 19 |
YAML | 1 | 3 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 7.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 74 | |
▷ Abstract classes | 5 | 6.76% |
▷ Concrete classes | 69 | 93.24% |
▷ Final classes | 0 | 0.00% |
Methods | 280 | |
▷ Static methods | 13 | 4.64% |
▷ Public methods | 191 | 68.21% |
▷ Protected methods | 22 | 7.86% |
▷ Private methods | 67 | 23.93% |
Functions | 24 | |
▷ Named functions | 22 | 91.67% |
▷ Anonymous functions | 2 | 8.33% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin