72% optimize-more-css

Code Review | Optimize More! - CSS

WordPress plugin Optimize More! - CSS scored72%from 54 tests.

About plugin

  • Plugin page: optimize-more-css
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 1, 2022
  • Latest release: Apr 20, 2022
  • Number of updates: 10
  • Update frequency: every 5.4 days
  • Top authors: aryadhiratara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,475 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼0.40ms] Passed 4 tests

Analyzing server-side resources used by Optimize More! - CSS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1136.05 ▼3.56
Dashboard /wp-admin3.41 ▲0.1146.25 ▼3.56
Posts /wp-admin/edit.php3.53 ▲0.1749.22 ▲1.55
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.24 ▲6.96
Media Library /wp-admin/upload.php3.34 ▲0.1039.12 ▲3.97
Optimize More! /wp-admin/admin.php?page=optimize-more-css3.3439.85

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Optimize More! - CSS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8414.47 ▲0.101.71 ▼0.1338.06 ▼6.90
Dashboard /wp-admin2,236 ▲484.85 ▼1.05106.74 ▲2.9541.00 ▼6.80
Posts /wp-admin/edit.php2,119 ▲302.01 ▲0.0239.39 ▲2.6437.72 ▲4.21
Add New Post /wp-admin/post-new.php1,561 ▲3323.33 ▲5.18682.62 ▲69.4561.26 ▲9.48
Media Library /wp-admin/upload.php1,412 ▲274.29 ▲0.0897.11 ▼6.3744.12 ▲0.40
Optimize More! /wp-admin/admin.php?page=optimize-more-css2,1593.7898.8549.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% 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 0% 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
The following issues need your attention
  • 11× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/optimize-more-css/includes/classes/index.php
    • > /wp-content/plugins/optimize-more-css/index.php
    • > /wp-content/plugins/optimize-more-css/view/admin/index.php
    • > /wp-content/plugins/optimize-more-css/includes/index.php
    • > /wp-content/plugins/optimize-more-css/assets/index.php
    • > /wp-content/plugins/optimize-more-css/view/admin/parts/index.php
    • > /wp-content/plugins/optimize-more-css/includes/functions/lib/index.php
    • > /wp-content/plugins/optimize-more-css/assets/js/index.php
    • > /wp-content/plugins/optimize-more-css/view/admin/parts/partials/sidebar.php
    • > /wp-content/plugins/optimize-more-css/assets/css/index.php
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/optimize-more-css/view/admin/parts/partials/async/delay-css-async.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more-css/view/admin/parts/preload.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more-css/view/admin/parts/import-settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more-css/view/admin/parts/delay.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/optimize-more-css/view/admin/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/optimize-more-css/view/admin/parts/partials/remove/remove-css.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/optimize-more-css/view/admin/parts/partials/delay/delay-css-interaction.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more-css/view/admin/parts/async.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more-css/view/admin/parts/remove.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/optimize-more-css/view/admin/parts/partials/preload/preload-css.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=optimize-more-css
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).select2 is not a function" "TypeError: jQuery(...).select2 is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/optimize-more-css/assets/js/admin-settings.js?ver=6.3.1:88:44)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=optimize-more-css
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).select2 is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: optimize, css, performance, pagespeed, core web vitals

optimize-more-css/optimize-more-css.php 85% from 13 tests

"Optimize More! - CSS" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Description: Please keep the plugin description shorter than 140 characters (currently 169 characters long)

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 plugin4,478 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP289254073,534
CSS211716775
JavaScript4103169

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.55
Average class complexity44.90
▷ Minimum class complexity2.00
▷ Maximum class complexity249.00
Average method complexity4.07
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods143
▷ Static methods42.80%
▷ Public methods12688.11%
▷ Protected methods1510.49%
▷ Private methods21.40%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants36
▷ Global constants3494.44%
▷ Class constants25.56%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin