83% skizzar-admin-theme-lite

Code Review | Skizzar Admin Theme Lite

WordPress plugin Skizzar Admin Theme Lite scored83%from 54 tests.

About plugin

  • Plugin page: skizzar-admin-the...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Mar 14, 2016
  • Latest release: Mar 14, 2016
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: skizzar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.26MB] [CPU: ▼2.21ms] Passed 4 tests

A check of server-side resources used by Skizzar Admin Theme Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2134.08 ▼7.89
Dashboard /wp-admin3.63 ▲0.3253.81 ▲4.10
Posts /wp-admin/edit.php3.69 ▲0.3357.87 ▲9.39
Add New Post /wp-admin/post-new.php6.15 ▲0.2685.41 ▼6.44
Media Library /wp-admin/upload.php3.47 ▲0.2438.79 ▲1.40
Admin Theme /wp-admin/themes.php?page=sat-options-general3.6239.43

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Skizzar Admin Theme Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,767 ▲3215.09 ▲0.700.98 ▼0.9324.92 ▼19.73
Dashboard /wp-admin2,341 ▲1536.52 ▲1.61134.89 ▲17.0273.59 ▲26.16
Posts /wp-admin/edit.php2,212 ▲1233.88 ▲1.8371.98 ▲35.0049.88 ▲16.06
Add New Post /wp-admin/post-new.php1,592 ▲5622.18 ▼1.10657.05 ▲66.8645.19 ▼3.50
Media Library /wp-admin/upload.php1,395 ▲74.30 ▲0.09100.11 ▲5.0454.89 ▲14.02
Admin Theme /wp-admin/themes.php?page=sat-options-general1,0673.2642.8650.59

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/skizzar-admin-theme-lite/inc/page-coming-soon.php on line 3
    • > PHP Notice
      Undefined variable: page_info in wp-content/plugins/skizzar-admin-theme-lite/inc/page-coming-soon.php on line 3
    • > PHP Notice
      Undefined variable: page_info in wp-content/plugins/skizzar-admin-theme-lite/inc/page-options-general.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/skizzar-admin-theme-lite/inc/page-options-general.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/skizzar-admin-theme-lite/inc/page-options-general.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Skizzar_Admin_Theme_Pages' not found in wp-content/plugins/skizzar-admin-theme-lite/inc/page-coming-soon.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/skizzar-admin-theme-lite/inc/page-options-network.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Skizzar_Admin_Theme_Pages' not found in wp-content/plugins/skizzar-admin-theme-lite/inc/page-options-network.php:5
    • > PHP Notice
      Undefined variable: page_info in wp-content/plugins/skizzar-admin-theme-lite/inc/page-options-network.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Screenshot 1), #2 (Screenshot 2), #3 (Screenshot 3)
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

skizzar-admin-theme-lite/index.php 92% from 13 tests

The main file in "Skizzar Admin Theme Lite" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("skizzar-admin-theme-lite.php" instead of "index.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
No dangerous file extensions were detected18,583 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
CSS102,67049316,577
PHP164723261,668
JavaScript2147300338

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity17.83
▷ Minimum class complexity7.00
▷ Maximum class complexity69.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods89
▷ Static methods7988.76%
▷ Public methods8898.88%
▷ Protected methods00.00%
▷ Private methods11.12%
Functions4
▷ Named functions4100.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
4 PNG files occupy 0.22MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/skizzar-logo-new-white.png40.34KB22.03KB▼ 45.39%
assets/screenshot-1.png79.00KB27.27KB▼ 65.48%
assets/screenshot-3.png44.76KB11.18KB▼ 75.01%
assets/screenshot-2.png61.84KB18.95KB▼ 69.36%