84% style-admin

Code Review | Style Admin

WordPress plugin Style Admin scored84%from 54 tests.

About plugin

  • Plugin page: style-admin
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.0.3
  • WordPress version: 6.3.1
  • First release: Apr 14, 2014
  • Latest release: Feb 18, 2019
  • Number of updates: 31
  • Update frequency: every 57.2 days
  • Top authors: fuzzguard (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,826 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.06MB] [CPU: ▼7.82ms] Passed 4 tests

A check of server-side resources used by Style Admin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0736.80 ▼1.76
Dashboard /wp-admin3.38 ▲0.0351.71 ▼8.01
Posts /wp-admin/edit.php3.43 ▲0.0745.71 ▼4.30
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.65 ▼17.22
Media Library /wp-admin/upload.php3.31 ▲0.0736.16 ▲4.30
Style Admin /wp-admin/themes.php?page=style-admin-options3.2629.79

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Style Admin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.34 ▼0.181.68 ▲0.1339.98 ▼1.65
Dashboard /wp-admin2,196 ▲195.55 ▼0.0182.84 ▼4.4138.36 ▼0.62
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.1734.35 ▼6.2735.51 ▼1.26
Add New Post /wp-admin/post-new.php1,529 ▼823.28 ▲5.28662.65 ▲64.7855.09 ▼9.92
Media Library /wp-admin/upload.php1,407 ▲134.19 ▼0.0294.78 ▼1.2346.50 ▲1.78
Style Admin /wp-admin/themes.php?page=style-admin-options2,0383.0181.9227.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 44 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=style-admin-options
    • > Notice in wp-content/plugins/style-admin/styleAdmin.php+409
    Trying to access array offset on value of type bool

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: login, admin, custom, dashboard, formatting...

style-admin/styleAdmin.php 92% from 13 tests

Analyzing the main PHP file in "Style Admin" version 1.4.3
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("style-admin.php" instead of "styleAdmin.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
Success! There were no dangerous files found in this plugin409 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP273107339
CSS18445
JavaScript27225

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity5.44
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin