Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.94ms] Passed 4 tests
Server-side resources used by Light Admin Theme
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.74 ▲6.33 |
Dashboard /wp-admin | 3.47 ▲0.13 | 49.29 ▼9.64 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 53.68 ▲6.28 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.19 ▼13.88 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.41 ▼2.52 |
Light Admin Theme /wp-admin/options-general.php?page=light-admin-theme | 3.34 | 42.04 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Light Admin Theme
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲194 | 14.71 ▲0.19 | 2.25 ▲0.70 | 47.10 ▲9.74 |
Dashboard /wp-admin | 2,339 ▲159 | 6.19 ▲0.62 | 115.86 ▲27.63 | 40.71 ▲1.65 |
Posts /wp-admin/edit.php | 2,267 ▲167 | 3.36 ▲1.38 | 54.93 ▲19.64 | 36.69 ▼3.96 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.63 ▲0.82 | 623.58 ▼33.56 | 38.41 ▼13.51 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.10 ▼0.20 | 86.70 ▼14.54 | 46.34 ▲2.46 |
Light Admin Theme /wp-admin/options-general.php?page=light-admin-theme | 1,052 | 3.12 | 43.59 | 29.72 |
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 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'LightAdminTheme\\Field\\Field' not found in wp-content/plugins/light-admin-theme/src/Field/RemoveWordPressLogoField.php:8
- > PHP Fatal error
Uncaught Error: Interface 'LightAdminTheme\\Action\\ActionInterface' not found in wp-content/plugins/light-admin-theme/src/Action/CustomPanelAction.php:5
- > PHP Fatal error
Uncaught Error: Class 'LightAdminTheme\\Field\\Field' not found in wp-content/plugins/light-admin-theme/src/Field/HideWelcomeField.php:7
- > PHP Fatal error
Uncaught Error: Interface 'LightAdminTheme\\Action\\ActionInterface' not found in wp-content/plugins/light-admin-theme/src/Action/RemoveCommentsInfoAction.php:5
- > PHP Fatal error
Uncaught Error: Interface 'LightAdminTheme\\Option\\OptionInterface' not found in wp-content/plugins/light-admin-theme/src/Option/Checkbox.php:7
- > PHP Fatal error
Uncaught Error: Interface 'LightAdminTheme\\Action\\ActionInterface' not found in wp-content/plugins/light-admin-theme/src/Action/RemoveWordPressLogoAction.php:5
- > PHP Fatal error
Uncaught Error: Interface 'LightAdminTheme\\Setting\\SettingInterface' not found in wp-content/plugins/light-admin-theme/src/Setting/Setting.php:9
- > PHP Fatal error
Uncaught Error: Interface 'LightAdminTheme\\Option\\OptionInterface' not found in wp-content/plugins/light-admin-theme/src/Option/Media.php:5
- > PHP Fatal error
Uncaught Error: Class 'LightAdminTheme\\Field\\Field' not found in wp-content/plugins/light-admin-theme/src/Field/LightThemeField.php:8
- > PHP Fatal error
Uncaught Error: Class 'LightAdminTheme\\Setting\\Setting' not found in wp-content/plugins/light-admin-theme/src/Setting/GeneralSetting.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: admin, dashboard, theme
light-admin-theme/light-admin-theme.php Passed 13 tests
"Light Admin Theme" version 0.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
This plugin will simplify and manage your administration.
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
There were no executable files found in this plugin1,098 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 190 | 31 | 779 |
CSS | 1 | 0 | 3 | 197 |
LESS | 1 | 23 | 2 | 77 |
Markdown | 1 | 16 | 0 | 45 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 2.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 2 | 9.09% |
▷ Concrete classes | 20 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 83 | 92.22% |
▷ Protected methods | 1 | 1.11% |
▷ Private methods | 6 | 6.67% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 185.08KB | 72.33KB | ▼ 60.92% |
assets/icon-256x256.png | 13.30KB | 7.79KB | ▼ 41.44% |
assets/icon-128x128.png | 5.89KB | 3.05KB | ▼ 48.24% |
assets/banner-772x250.png | 64.95KB | 23.60KB | ▼ 63.67% |