90% wp-prevent-css-cache

Code Review | WP Prevent CSS Cache

WordPress plugin WP Prevent CSS Cache scored90%from 54 tests.

About plugin

  • Plugin page: wp-prevent-css-cache
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.1
  • WordPress version: 6.3.1
  • First release: Mar 12, 2019
  • Latest release: Mar 12, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: eastsidecode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /518 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.23ms] Passed 4 tests

This is a short check of server-side resources used by WP Prevent CSS Cache
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.16 ▼4.70
Dashboard /wp-admin3.31 ▼0.0348.64 ▼13.76
Posts /wp-admin/edit.php3.37 ▲0.0054.43 ▲4.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.55 ▼16.85
Media Library /wp-admin/upload.php3.24 ▲0.0037.75 ▼1.61

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Prevent CSS Cache: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.211.80 ▲0.0443.96 ▲2.69
Dashboard /wp-admin2,198 ▲185.67 ▲0.0386.96 ▼2.3041.13 ▼0.81
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0140.85 ▲1.0736.13 ▲1.17
Add New Post /wp-admin/post-new.php1,545 ▼023.25 ▲0.19671.49 ▲17.4969.09 ▲19.79
Media Library /wp-admin/upload.php1,394 ▼64.29 ▲0.09100.66 ▲3.2743.51 ▼3.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: development, prevent, cache, css

wp-prevent-css-cache/wp-prevent-css-cache.php Passed 13 tests

"WP Prevent CSS Cache" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
70 characters long description:
WordPress plugin to prevent caching your stylesheet during development

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
Success! There were no dangerous files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141111

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
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
Namespaces0
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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