83% snazzyadmin-wp-admin-theme

Code Review | SnazzyAdmin WP Admin Theme

WordPress plugin SnazzyAdmin WP Admin Theme scored 83% from 54 tests.

About plugin

  • Plugin page: snazzyadmin-wp-ad...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.4
  • WordPress version: 5.9.2
  • First release: Feb 12, 2018
  • Latest release: Feb 21, 2018
  • Number of updates: 11
  • Update frequency: every 0.9 days
  • Top authors: snazzythemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 603 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲2.02MB] [CPU: ▼287.85ms] Passed 4 tests

A check of server-side resources used by SnazzyAdmin WP Admin Theme
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.59 ▲2.0870.02 ▲16.36
Dashboard /wp-admin5.61 ▲2.2053.13 ▲13.38
Posts /wp-admin/edit.php5.61 ▲1.9757.78 ▲17.10
Add New Post /wp-admin/post-new.php8.80 ▲1.84115.55 ▼1,196.69
Media Library /wp-admin/upload.php5.61 ▲2.3244.97 ▲15.56
SnazzyAdmin WP Admin Theme /wp-admin/admin.php?page=snazzyadmin-wp-admin-theme5.6141.69
Freemius Debug [v.1.2.3] /wp-admin/admin.php?page=freemius5.6142.41

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 177 new files
Database: no new tables, 4 new options
New WordPress options
fs_debug_mode
fs_api_cache
fs_active_plugins
fs_accounts

Browser metrics Passed 4 tests

This is an overview of browser requirements for SnazzyAdmin WP Admin Theme
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,072 ▲31817.73 ▲1.917.11 ▲1.133.14 ▲0.30
Dashboard /wp-admin3,166 ▲3128.46 ▲2.26149.80 ▲2.52201.23 ▲34.26
Posts /wp-admin/edit.php3,010 ▲3225.55 ▲2.1983.15 ▲20.38181.64 ▲41.78
Add New Post /wp-admin/post-new.php1,877 ▲21620.71 ▲4.32428.70 ▼18.27184.74 ▲30.88
Media Library /wp-admin/upload.php1,789 ▲915.78 ▲0.29112.99 ▼28.11241.23 ▲55.85
SnazzyAdmin WP Admin Theme /wp-admin/admin.php?page=snazzyadmin-wp-admin-theme1,5534.8371.75216.79
Freemius Debug [v.1.2.3] /wp-admin/admin.php?page=freemius1,7144.7572.83149.75

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 4 options in the database
    • fs_active_plugins
    • fs_debug_mode
    • fs_accounts
    • fs_api_cache

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
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/snazzyadmin-wp-admin-theme/freemius/templates/ajax-loader.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3 in snazzyadmin-wp-admin-theme/assets to your readme.txt
  • Tags: There are too many tags (20 tag instead of maximum 10)
You can look at the official readme.txt

snazzyadmin-wp-admin-theme/snazzyadmin.php 85% from 13 tests

"SnazzyAdmin WP Admin Theme" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("snazzyadmin-wp-admin-theme.php" instead of "snazzyadmin.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin28,449 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
PHP914,41210,80218,823
PO File62,7783,0586,111
Sass21345762,159
CSS121240872
JavaScript45176265
Markdown1610192
JSON10027

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,333)
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity49.95
▷ Minimum class complexity1.00
▷ Maximum class complexity1,333.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes41
▷ Abstract classes24.88%
▷ Concrete classes3995.12%
▷ Final classes00.00%
Methods789
▷ Static methods12515.84%
▷ Public methods59575.41%
▷ Protected methods141.77%
▷ Private methods18022.81%
Functions87
▷ Named functions87100.00%
▷ Anonymous functions00.00%
Constants104
▷ Global constants8480.77%
▷ Class constants2019.23%
▷ Public constants20100.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
5 PNG files occupy 0.45MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/snazzyadmin-wp-admin-theme.png9.16KB5.26KB▼ 42.58%
global/img/bg-2.png424.98KB124.52KB▼ 70.70%
freemius/assets/img/WPFresherCartAdd-Ons.png9.16KB5.26KB▼ 42.58%