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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.37 | 71.00 ▲17.17 |
Dashboard /wp-admin | 3.47 ▲0.07 | 32.66 ▲0.97 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 36.40 ▼0.49 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 93.98 ▼1,158.50 |
Media Library /wp-admin/upload.php | 3.35 ▲0.06 | 24.75 ▼0.25 |
Modular CSS /wp-admin/options-general.php?page=wp-modular-css-settings | 3.61 | 46.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,770 ▲16 | 15.98 ▼0.01 | 6.21 ▲0.30 | 2.43 ▼0.02 |
Dashboard /wp-admin | 2,897 ▲39 | 6.14 ▼0.04 | 116.51 ▼16.85 | 148.07 ▼9.99 |
Posts /wp-admin/edit.php | 2,690 ▼4 | 3.23 ▲0.17 | 64.84 ▼1.50 | 138.97 ▼2.93 |
Add New Post /wp-admin/post-new.php | 1,669 ▼16 | 20.48 ▲2.34 | 422.86 ▲27.58 | 155.41 ▼0.92 |
Media Library /wp-admin/upload.php | 1,703 ▲14 | 5.50 ▼0.03 | 138.98 ▼6.30 | 188.86 ▼0.74 |
Modular CSS /wp-admin/options-general.php?page=wp-modular-css-settings | 2,402 | 5.08 | 114.33 | 201.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 1,218 | 1,422 | 4,110 |
CSS | 59 | 386 | 353 | 1,965 |
JSON | 4 | 0 | 0 | 684 |
JavaScript | 9 | 39 | 13 | 181 |
Markdown | 3 | 108 | 0 | 174 |
YAML | 2 | 1 | 1 | 56 |
Dockerfile | 1 | 2 | 0 | 11 |
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 code | 0.34 |
Average class complexity | 24.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 3 | 15.00% |
▷ Concrete classes | 17 | 85.00% |
▷ Final classes | 0 | 0.00% |
Methods | 216 | |
▷ Static methods | 43 | 19.91% |
▷ Public methods | 118 | 54.63% |
▷ Protected methods | 94 | 43.52% |
▷ Private methods | 4 | 1.85% |
Functions | 22 | |
▷ Named functions | 6 | 27.27% |
▷ Anonymous functions | 16 | 72.73% |
Constants | 13 | |
▷ Global constants | 5 | 38.46% |
▷ Class constants | 8 | 61.54% |
▷ Public constants | 8 | 100.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