Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.52ms] Passed 4 tests
An overview of server-side resources used by Widget Favorites
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.14 | 36.37 ▼1.94 |
Dashboard /wp-admin | 3.43 ▲0.13 | 44.67 ▼3.45 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 50.83 ▲1.41 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 94.46 ▲4.60 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 33.40 ▲1.88 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Widget Favorites: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.20 ▼1.17 | 4.63 ▲2.92 | 41.35 ▼2.75 |
Dashboard /wp-admin | 2,206 ▲15 | 5.88 ▲1.00 | 107.63 ▲3.77 | 41.86 ▲0.70 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.05 | 39.98 ▲0.50 | 34.21 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.05 ▼0.12 | 593.22 ▼66.57 | 48.89 ▼8.71 |
Media Library /wp-admin/upload.php | 1,385 ▲6 | 4.22 ▼0.10 | 99.65 ▼0.51 | 42.94 ▼1.64 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
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 fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/widget-favorites/tests/test-class-plugin.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/widget-favorites/tests/test-class-filter-suspension.php:5
- > PHP Fatal error
Uncaught Error: Class 'WidgetFavorites\\Exception' not found in wp-content/plugins/widget-favorites/php/class-public-exception.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function WidgetFavorites\\trailingslashit() in wp-content/plugins/widget-favorites/php/class-plugin.php:325
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: revisions, customizer, widgets
widget-favorites/widget-favorites.php 92% from 13 tests
The main PHP script in "Widget Favorites" version 0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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
There were no executable files found in this plugin1,198 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 144 | 213 | 672 |
JavaScript | 1 | 69 | 139 | 437 |
CSS | 1 | 3 | 0 | 53 |
Markdown | 1 | 18 | 0 | 36 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 97.44% |
▷ Protected methods | 1 | 2.56% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
PNG images were not found in this plugin