90% css-above-the-fold

Code Review | CSS Above The Fold

WordPress plugin CSS Above The Fold scored90%from 54 tests.

About plugin

  • Plugin page: css-above-the-fold
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.2-4.3
  • WordPress version: 6.3.1
  • First release: Mar 25, 2015
  • Latest release: Aug 31, 2015
  • Number of updates: 15
  • Update frequency: every 10.7 days
  • Top authors: pauiglesias (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /15,079 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.02MB] [CPU: ▼6.95ms] Passed 4 tests

Analyzing server-side resources used by CSS Above The Fold
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.90 ▲2.01
Dashboard /wp-admin3.33 ▲0.0243.71 ▼7.03
Posts /wp-admin/edit.php3.38 ▲0.0251.36 ▲3.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.52 ▼22.39
Media Library /wp-admin/upload.php3.25 ▲0.0233.85 ▼0.37

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for CSS Above The Fold
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▼0.081.76 ▲0.1739.15 ▲4.38
Dashboard /wp-admin2,198 ▲215.59 ▼0.0792.68 ▼6.9140.86 ▼5.34
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0234.25 ▲0.4130.86 ▼6.74
Add New Post /wp-admin/post-new.php1,526 ▼023.19 ▼0.19677.85 ▼1.3382.94 ▲31.53
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.0493.28 ▼0.3939.83 ▲0.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • bs_css_atf_timestamp
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • bs_css_atf
    • widget_recent-posts

Smoke tests Passed 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 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

css-above-the-fold/css-above-the-fold.php Passed 13 tests

"CSS Above The Fold" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
120 characters long description:
Faster CSS browser rendering displaying selected fragments of your theme stylesheet file directly into the head section.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1496579

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods120.00%
▷ Protected methods00.00%
▷ Private methods480.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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
There are no PNG files in this plugin