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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.71ms] Passed 4 tests
A check of server-side resources used by SV Press Permit Show Available Content for User
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.54 ▼7.12 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.62 ▼2.32 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 43.18 ▼3.92 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.20 ▼9.46 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 33.65 ▼0.68 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_sv_pp_showavailablecontentforuser |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for SV Press Permit Show Available Content for User
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.23 ▼1.36 | 1.76 ▼0.10 | 37.97 ▼5.95 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▲0.00 | 96.86 ▼13.43 | 39.68 ▼6.77 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▲0.05 | 37.22 ▼3.96 | 31.38 ▼3.94 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.29 ▲0.43 | 602.60 ▼45.28 | 54.49 ▲3.55 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.21 ▲0.05 | 96.19 ▲1.71 | 43.13 ▲1.15 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_sv_pp_showavailablecontentforuser
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
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
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sv-press-permit-show-available-content-for-user/lib/tpl/SV_PP_ShowAvailableContentForUser.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sv-press-permit-show-available-content-for-user/lib/modules/widgets.php:2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sv-press-permit-show-available-content-for-user/lib/tpl/SV_PP_ShowAvailableContentForUser.php on line 3
- > PHP Notice
Undefined variable: content_IDs in wp-content/plugins/sv-press-permit-show-available-content-for-user/lib/tpl/SV_PP_ShowAvailableContentForUser.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/sv-press-permit-show-available-content-for-user/sv_pp_show_available_content_for_user.php:44
- > PHP Fatal error
Uncaught Error: Class 'sv_pp_sacfu' not found in wp-content/plugins/sv-press-permit-show-available-content-for-user/lib/modules/integration.php:10
- > PHP Fatal error
Uncaught Error: Class 'sv_pp_sacfu' not found in wp-content/plugins/sv-press-permit-show-available-content-for-user/lib/modules/hooks.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
sv-press-permit-show-available-content-for-user/sv_pp_show_available_content_for_user.php 85% from 13 tests
"SV Press Permit Show Available Content for User" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sv-press-permit-show-available-content-for-user.php" instead of "sv_pp_show_available_content_for_user.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected126 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 21 | 106 | 126 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin