84% delay-trivial-css

Code Review | Delay Trivial CSS

WordPress plugin Delay Trivial CSS scored84%from 54 tests.

About plugin

  • Plugin page: delay-trivial-css
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.9.4
  • WordPress version: 6.3.1
  • First release: May 26, 2018
  • Latest release: May 26, 2018
  • Number of updates: 2
  • Update frequency: every 30.0 days
  • Top authors: atif089 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /578 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.82ms] Passed 4 tests

A check of server-side resources used by Delay Trivial CSS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0040.75 ▼1.70
Dashboard /wp-admin3.31 ▲0.0044.51 ▼7.59
Posts /wp-admin/edit.php3.36 ▲0.0044.90 ▼3.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.29 ▼12.92
Media Library /wp-admin/upload.php3.23 ▲0.0032.78 ▼3.50

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Delay Trivial CSS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.24 ▼1.145.69 ▲3.7442.24 ▼8.07
Dashboard /wp-admin2,206 ▲184.87 ▲0.00108.21 ▼3.9842.14 ▼4.95
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0238.57 ▼1.5835.98 ▲2.54
Add New Post /wp-admin/post-new.php1,514 ▼1917.69 ▼5.45680.71 ▲13.8662.93 ▲11.10
Media Library /wp-admin/upload.php1,391 ▼04.26 ▲0.03103.44 ▲4.4441.84 ▼1.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function DelayTrivialCSS\\add_action() in wp-content/plugins/delay-trivial-css/delay-trivial-css.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: css, performance

delay-trivial-css/delay-trivial-css.php Passed 13 tests

The entry point to "Delay Trivial CSS" version 0.1.0 is a PHP file that has certain tags in its header comment area
83 characters long description:
Moves all styles which are not related to the current theme from section to footer

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151428

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin