90% speed-up-optimize-css-delivery

Code Review | Speed Up - Optimize CSS Delivery

WordPress plugin Speed Up - Optimize CSS Delivery scored 90% from 54 tests.

About plugin

  • Plugin page: speed-up-optimize...
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Dec 8, 2016
  • Latest release: Mar 5, 2023
  • Number of updates: 29
  • Update frequency: every 78.4 days
  • Top authors: nigro.simone (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active / 55,601 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.26ms] Passed 4 tests

Analyzing server-side resources used by Speed Up - Optimize CSS Delivery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.37 ▼6.03
Dashboard /wp-admin3.32 ▲0.0145.32 ▼7.86
Posts /wp-admin/edit.php3.37 ▲0.0147.63 ▼9.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.04 ▼17.87
Media Library /wp-admin/upload.php3.24 ▲0.0133.67 ▼0.68

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Speed Up - Optimize CSS Delivery
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲12013.27 ▼1.207.01 ▲4.3446.06 ▲8.67
Dashboard /wp-admin2,209 ▲185.84 ▲0.95111.42 ▼3.1445.00 ▲3.35
Posts /wp-admin/edit.php2,086 ▼72.01 ▼0.0038.82 ▼16.2534.65 ▼4.28
Add New Post /wp-admin/post-new.php1,534 ▼023.23 ▼0.29681.27 ▲78.3653.86 ▼8.21
Media Library /wp-admin/upload.php1,382 ▼34.22 ▲0.0099.54 ▼1.0140.90 ▼7.48

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: async, seo, wp_enqueue_style, speed, wordpress optimization tool...

speed-up-optimize-css-delivery/speed-up-optimize-css-delivery.php Passed 13 tests

The main PHP script in "Speed Up - Optimize CSS Delivery" version 1.0.11 is automatically included on every request by WordPress
76 characters long description:
This plugin load the stylesheets asynchronously and improve page load times.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin118 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript292776
PHP1175142

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
PNG images were not found in this plugin