Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▲0.98ms] Passed 4 tests
Analyzing server-side resources used by Custom PHP Settings
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.19 ▼3.07 |
Dashboard /wp-admin | 3.65 ▲0.35 | 52.41 ▼2.53 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 52.79 ▲4.36 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 97.36 ▲5.15 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 40.27 ▲5.98 |
Custom PHP Settings /wp-admin/tools.php?page=custom-php-settings | 3.51 | 38.83 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
custom_php_settings |
Browser metrics Passed 4 tests
A check of browser resources used by Custom PHP Settings
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.43 | 1.73 ▼0.34 | 42.39 ▼4.97 |
Dashboard /wp-admin | 2,202 ▲22 | 5.57 ▼0.08 | 92.24 ▲4.47 | 43.37 ▲1.04 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.97 ▼0.01 | 44.54 ▲0.41 | 35.49 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,530 ▼7 | 23.03 ▼0.32 | 671.32 ▼17.27 | 53.04 ▲2.93 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▲0.02 | 111.07 ▲9.59 | 48.49 ▲2.00 |
Custom PHP Settings /wp-admin/tools.php?page=custom-php-settings | 1,190 | 4.08 | 92.82 | 38.84 |
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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following items
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function CustomPhpSettings\\add_action() in wp-content/plugins/custom-php-settings/bootstrap.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-php-settings/src/Backend/views/cps-php-info.php:3
- > PHP Fatal error
Uncaught Error: Class 'CustomPhpSettings\\Plugin\\Common\\Singleton' not found in wp-content/plugins/custom-php-settings/src/Backend/Backend.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-php-settings/src/Backend/views/cps-status.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-php-settings/src/Backend/views/cps-tabs.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-php-settings/src/Backend/views/cps-general.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-php-settings/src/Backend/views/cps-tabs.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-php-settings/src/Backend/views/cps-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-php-settings/src/Backend/views/cps-tabs.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-php-settings/src/Backend/views/cps-apache.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: htaccess, apache, php, apache2, settings
custom-php-settings/bootstrap.php 85% from 13 tests
"Custom PHP Settings" version 1.4.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("custom-php-settings.php" instead of "bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,406 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 257 | 800 | 2,034 |
JSON | 2 | 0 | 0 | 210 |
JavaScript | 2 | 0 | 2 | 102 |
CSS | 1 | 0 | 3 | 60 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 27.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 28 | 24.56% |
▷ Public methods | 93 | 81.58% |
▷ Protected methods | 15 | 13.16% |
▷ Private methods | 6 | 5.26% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.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
2 PNG files occupy 0.37MB with 0.20MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/Backend/assets/icon-128x128.png | 25.56KB | 15.67KB | ▼ 38.68% |
src/Backend/assets/buymeacoffee.png | 357.15KB | 117.12KB | ▼ 67.21% |