84% light-admin-theme

Code Review | Light Admin Theme

WordPress plugin Light Admin Theme scored84%from 54 tests.

About plugin

  • Plugin page: light-admin-theme
  • Plugin version: 0.3.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Aug 24, 2018
  • Latest release: Oct 18, 2023
  • Number of updates: 32
  • Update frequency: every 58.8 days
  • Top authors: katuscak (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /3,225 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.74 ▲6.33
Dashboard /wp-admin3.47 ▲0.1349.29 ▼9.64
Posts /wp-admin/edit.php3.53 ▲0.1853.68 ▲6.28
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.19 ▼13.88
Media Library /wp-admin/upload.php3.32 ▲0.0936.41 ▼2.52
Light Admin Theme /wp-admin/options-general.php?page=light-admin-theme3.3442.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲19414.71 ▲0.192.25 ▲0.7047.10 ▲9.74
Dashboard /wp-admin2,339 ▲1596.19 ▲0.62115.86 ▲27.6340.71 ▲1.65
Posts /wp-admin/edit.php2,267 ▲1673.36 ▲1.3854.93 ▲19.6436.69 ▼3.96
Add New Post /wp-admin/post-new.php1,528 ▼023.63 ▲0.82623.58 ▼33.5638.41 ▼13.51
Media Library /wp-admin/upload.php1,401 ▲44.10 ▼0.2086.70 ▼14.5446.34 ▲2.46
Light Admin Theme /wp-admin/options-general.php?page=light-admin-theme1,0523.1243.5929.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP2719031779
CSS103197
LESS123277
Markdown116045

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 code0.22
Average class complexity2.58
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces7
Interfaces4
Traits0
Classes22
▷ Abstract classes29.09%
▷ Concrete classes2090.91%
▷ Final classes00.00%
Methods90
▷ Static methods00.00%
▷ Public methods8392.22%
▷ Protected methods11.11%
▷ Private methods66.67%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png185.08KB72.33KB▼ 60.92%
assets/icon-256x256.png13.30KB7.79KB▼ 41.44%
assets/icon-128x128.png5.89KB3.05KB▼ 48.24%
assets/banner-772x250.png64.95KB23.60KB▼ 63.67%