Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.36MB] [CPU: ▼6.18ms] Passed 4 tests
A check of server-side resources used by Wp Favs - Plugin Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.18 ▼7.31 |
Dashboard /wp-admin | 3.83 ▲0.53 | 51.61 ▼4.24 |
Posts /wp-admin/edit.php | 3.88 ▲0.53 | 54.83 ▲1.87 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 89.23 ▼15.04 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 43.41 ▲3.59 |
Wp Favs /wp-admin/tools.php?page=wpfavs | 3.67 | 37.26 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Wp Favs - Plugin Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.38 ▼0.35 | 1.80 ▼0.17 | 40.51 ▼4.77 |
Dashboard /wp-admin | 2,202 ▲25 | 5.59 ▼0.02 | 84.11 ▼15.73 | 38.16 ▼5.62 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.01 ▲0.03 | 34.86 ▼3.48 | 30.35 ▼10.72 |
Add New Post /wp-admin/post-new.php | 1,530 ▼7 | 23.23 ▲4.88 | 656.65 ▲4.03 | 58.36 ▼7.61 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.15 ▼0.06 | 95.39 ▼11.71 | 41.18 ▼7.52 |
Wp Favs /wp-admin/tools.php?page=wpfavs | 955 | 2.04 | 27.79 | 30.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wpfavs/admin/views/footer.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpfavs/admin/includes/class-plugins-table.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpfavs/admin/includes/class-plugins-table.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wpfavs/admin/views/header.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpfavs/admin/views/main.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/wpfavs/admin/includes/class-tgm-plugin-activation.php:2187
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wpfavs/admin/includes/class-plugins-table.php on line 7
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: wp core, plugin manager, multi plugin installer, multiple plugins, favorite plugins...
wpfavs/wpfavs.php Passed 13 tests
This is the main PHP file of "Wp Favs - Plugin Manager" version 1.2.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Create and import your favorites plugins lists from wpfavs.com
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,546 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 773 | 2,020 | 2,473 |
CSS | 1 | 2 | 1 | 44 |
JavaScript | 1 | 8 | 2 | 29 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 51.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 217.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.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 | 134 | |
▷ Static methods | 8 | 5.97% |
▷ Public methods | 104 | 77.61% |
▷ Protected methods | 26 | 19.40% |
▷ Private methods | 4 | 2.99% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected