89% cool-admin-theme-lite-for-wp

Code Review | Cool Admin Theme Lite for WP

WordPress plugin Cool Admin Theme Lite for WP scored89%from 54 tests.

About plugin

  • Plugin page: cool-admin-theme-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3.2
  • WordPress version: 6.3.1
  • First release: Aug 27, 2020
  • Latest release: Aug 27, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: catforwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /929 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.21MB] [CPU: ▼5.38ms] Passed 4 tests

Server-side resources used by Cool Admin Theme Lite for WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1638.31 ▼1.34
Dashboard /wp-admin3.54 ▲0.1948.52 ▼12.23
Posts /wp-admin/edit.php3.65 ▲0.3050.44 ▲7.76
Add New Post /wp-admin/post-new.php6.16 ▲0.2783.70 ▼11.55
Media Library /wp-admin/upload.php3.46 ▲0.2341.40 ▲3.61
Cool Admin Theme Lite /wp-admin/options-general.php?page=catforwp3.4333.31

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cool Admin Theme Lite for WP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲7616.22 ▲1.591.74 ▼0.1929.43 ▼14.88
Dashboard /wp-admin2,189 ▲16.84 ▲1.80151.58 ▲34.7247.88 ▲4.52
Posts /wp-admin/edit.php2,090 ▲14.13 ▲2.1490.82 ▲55.4942.99 ▲8.71
Add New Post /wp-admin/post-new.php1,690 ▲16926.29 ▲2.95599.56 ▼65.4627.12 ▼23.43
Media Library /wp-admin/upload.php1,374 ▼145.82 ▲1.70129.90 ▲15.3737.48 ▼11.77
Cool Admin Theme Lite /wp-admin/options-general.php?page=catforwp1,0644.3092.9866.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: wordpress admin theme, cool admin theme for wordpress, wp admin theme

cool-admin-theme-lite-for-wp/cool-admin-theme-lite-for-wp.php 85% from 13 tests

The main PHP script in "Cool Admin Theme Lite for WP" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 216 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,559 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS2248352,292
PHP4387296990
PO File28893259
JavaScript10018

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity112.00
▷ Minimum class complexity112.00
▷ Maximum class complexity112.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods72
▷ Static methods00.00%
▷ Public methods6995.83%
▷ Protected methods34.17%
▷ Private methods00.00%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin