94% wp-modular-css

Code Review | WP Modular CSS

WordPress plugin WP Modular CSS scored 94% from 54 tests.

About plugin

  • Plugin page: wp-modular-css
  • Plugin version: 2.3.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 5.9.2
  • First release: Feb 14, 2018
  • Latest release: Mar 20, 2021
  • Number of updates: 20
  • Update frequency: every 56.5 days
  • Top authors: luizbills (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 778 total downloads

Benchmarks

Plugin footprint Passed 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.04MB] [CPU: ▼289.57ms] Passed 4 tests

A check of server-side resources used by WP Modular CSS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.3771.00 ▲17.17
Dashboard /wp-admin3.47 ▲0.0732.66 ▲0.97
Posts /wp-admin/edit.php3.70 ▲0.0636.40 ▼0.49
Add New Post /wp-admin/post-new.php6.94 ▼0.0393.98 ▼1,158.50
Media Library /wp-admin/upload.php3.35 ▲0.0624.75 ▼0.25
Modular CSS /wp-admin/options-general.php?page=wp-modular-css-settings3.6146.45

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 127 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Modular CSS
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,770 ▲1615.98 ▼0.016.21 ▲0.302.43 ▼0.02
Dashboard /wp-admin2,897 ▲396.14 ▼0.04116.51 ▼16.85148.07 ▼9.99
Posts /wp-admin/edit.php2,690 ▼43.23 ▲0.1764.84 ▼1.50138.97 ▼2.93
Add New Post /wp-admin/post-new.php1,669 ▼1620.48 ▲2.34422.86 ▲27.58155.41 ▼0.92
Media Library /wp-admin/upload.php1,703 ▲145.50 ▼0.03138.98 ▼6.30188.86 ▼0.74
Modular CSS /wp-admin/options-general.php?page=wp-modular-css-settings2,4025.08114.33201.62

Uninstaller [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/wp-modular-css/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/wp-modular-css/vendor/matthiasmullie/minify/src/Exceptions/IOException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/wp-modular-css/vendor/matthiasmullie/minify/src/CSS.php:29
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/wp-modular-css/vendor/matthiasmullie/path-converter/src/NoConverter.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/wp-modular-css/vendor/matthiasmullie/minify/src/Exceptions/FileImportException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/wp-modular-css/vendor/matthiasmullie/minify/src/JS.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/wp-modular-css/vendor/matthiasmullie/path-converter/src/Converter.php:19

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: modular, tachyons, functional, atomic, css

wp-modular-css/wp-modular-css.php Passed 13 tests

The main file in "WP Modular CSS" v. 2.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
35 characters long description:
Generate customized Tachyons easily

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected7,181 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
PHP341,2181,4224,110
CSS593863531,965
JSON400684
JavaScript93913181
Markdown31080174
YAML21156
Dockerfile12011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity24.52
▷ Minimum class complexity1.00
▷ Maximum class complexity181.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces5
Interfaces1
Traits0
Classes20
▷ Abstract classes315.00%
▷ Concrete classes1785.00%
▷ Final classes00.00%
Methods216
▷ Static methods4319.91%
▷ Public methods11854.63%
▷ Protected methods9443.52%
▷ Private methods41.85%
Functions22
▷ Named functions627.27%
▷ Anonymous functions1672.73%
Constants13
▷ Global constants538.46%
▷ Class constants861.54%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin