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.17MB] [CPU: ▼5.42ms] Passed 4 tests
Server-side resources used by WP Frontend Helper
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.68 ▼1.82 |
Dashboard /wp-admin | 3.52 ▲0.18 | 50.71 ▼14.34 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 57.07 ▲7.01 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 94.61 ▼10.53 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 41.73 ▲5.03 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wpfh_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP Frontend Helper
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.53 ▼1.24 | 1.58 ▼0.30 | 41.64 ▼1.73 |
Dashboard /wp-admin | 2,206 ▲15 | 4.87 ▼0.07 | 111.64 ▲5.85 | 41.50 ▲0.68 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.05 | 40.56 ▼2.27 | 34.82 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,514 ▼15 | 17.47 ▼0.96 | 671.42 ▲32.60 | 61.62 ▲5.70 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▲0.02 | 97.10 ▼8.25 | 41.49 ▼3.57 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-frontend-helper/wpfh.php
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WpfhTestCase' not found in wp-content/plugins/wp-frontend-helper/tests/src/Commands/test-MediaVersionBust.php:9
- > PHP Fatal error
Uncaught Error: Class 'WpfhTestCase' not found in wp-content/plugins/wp-frontend-helper/tests/src/Assets/test-AssetsManager.php:12
- > PHP Fatal error
Uncaught Error: Class 'WpfhTestCase' not found in wp-content/plugins/wp-frontend-helper/tests/src/Commands/test-EnableMediaVersion.php:9
- > PHP Fatal error
Uncaught Error: Class 'WpfhTestCase' not found in wp-content/plugins/wp-frontend-helper/tests/src/Media/test-MediaPrinter.php:11
- > PHP Fatal error
Uncaught Error: Class 'WpfhTestCase' not found in wp-content/plugins/wp-frontend-helper/tests/src/test-WpfhConfig.php:9
- > PHP Fatal error
Uncaught Error: Class 'WpfhTestCase' not found in wp-content/plugins/wp-frontend-helper/tests/src/Media/test-MediaTag.php:9
- > PHP Fatal error
Uncaught Error: Class 'WpfhTestCase' not found in wp-content/plugins/wp-frontend-helper/tests/src/Assets/test-AssetObserver.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-frontend-helper/tests/TestCase.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-frontend-helper/tests/TestCase.php:9
- > PHP Fatal error
Uncaught Error: Class 'WpfhTestCase' not found in wp-content/plugins/wp-frontend-helper/tests/src/test-WpfhOptions.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-frontend-helper ===
)
wp-frontend-helper/wpfh.php 92% from 13 tests
This is the main PHP file of "WP Frontend Helper" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-frontend-helper.php" instead of "wpfh.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,382 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 383 | 725 | 1,291 |
Markdown | 1 | 13 | 0 | 60 |
XML | 1 | 0 | 0 | 30 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of 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.21 |
Average class complexity | 4.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 11 | 8.94% |
▷ Public methods | 109 | 88.62% |
▷ Protected methods | 11 | 8.94% |
▷ Private methods | 3 | 2.44% |
Functions | 15 | |
▷ Named functions | 2 | 13.33% |
▷ Anonymous functions | 13 | 86.67% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin