84% css-autoloader

Code Review | Smart CSS Auto Loader

WordPress plugin Smart CSS Auto Loader scored84%from 54 tests.

About plugin

  • Plugin page: css-autoloader
  • Plugin version: 5.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 28, 2015
  • Latest release: Oct 1, 2023
  • Number of updates: 31
  • Update frequency: every 94.5 days
  • Top authors: petersplugins (80.65%)smartware.cc (22.58%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /6,145 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.07MB] [CPU: ▼4.67ms] Passed 4 tests

Analyzing server-side resources used by Smart CSS Auto Loader
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.44 ▲4.09
Dashboard /wp-admin3.39 ▲0.0949.86 ▼12.29
Posts /wp-admin/edit.php3.93 ▲0.5853.58 ▲3.58
Add New Post /wp-admin/post-new.php5.98 ▲0.0997.54 ▼10.26
Media Library /wp-admin/upload.php3.25 ▲0.0336.65 ▲0.31
CSS AutoLoader /wp-admin/themes.php?page=cssautoloader3.2229.53

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
css_autoloader_data
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Smart CSS Auto Loader
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.76 ▲0.411.66 ▼0.2241.27 ▲0.90
Dashboard /wp-admin2,213 ▲314.84 ▼1.08104.14 ▼14.4841.49 ▼1.05
Posts /wp-admin/edit.php2,093 ▲11.99 ▲0.0137.36 ▼5.6131.26 ▼6.70
Add New Post /wp-admin/post-new.php1,531 ▲1223.16 ▼0.20687.91 ▲0.0555.35 ▼8.99
Media Library /wp-admin/upload.php1,386 ▼24.18 ▲0.0397.52 ▼23.2141.84 ▼6.01
CSS AutoLoader /wp-admin/themes.php?page=cssautoloader8242.3830.9432.09

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_Class' not found in wp-content/plugins/css-autoloader/inc/ppf/ppf-subclass.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_Plugin' not found in wp-content/plugins/css-autoloader/inc/ppf/ppf-plugin-addon.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_SubClass' not found in wp-content/plugins/css-autoloader/inc/ppf/ppf-settings.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_SubClass' not found in wp-content/plugins/css-autoloader/inc/ppf/ppf-admin.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_Class' not found in wp-content/plugins/css-autoloader/inc/ppf/ppf-plugin.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

css-autoloader/css-autoloader.php 92% from 13 tests

This is the main PHP file of "Smart CSS Auto Loader" version 5.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 187 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,078 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP136861,010752
CSS1510231
JavaScript2352290
SVG5005

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.88
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes675.00%
▷ Concrete classes225.00%
▷ Final classes00.00%
Methods87
▷ Static methods11.15%
▷ Public methods7485.06%
▷ Protected methods55.75%
▷ Private methods89.20%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin