89% speed-up-browser-caching

Code Review | Speed Up - Browser Caching

WordPress plugin Speed Up - Browser Caching scored89%from 54 tests.

About plugin

  • Plugin page: speed-up-browser-...
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Nov 28, 2016
  • Latest release: Mar 5, 2023
  • Number of updates: 24
  • Update frequency: every 95.3 days
  • Top authors: nigro.simone (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /26,113 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.49ms] Passed 4 tests

An overview of server-side resources used by Speed Up - Browser Caching
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.91 ▼4.21
Dashboard /wp-admin3.33 ▼0.0146.68 ▼13.93
Posts /wp-admin/edit.php3.38 ▲0.0350.33 ▲10.13
Add New Post /wp-admin/post-new.php5.91 ▲0.0379.49 ▼20.03
Media Library /wp-admin/upload.php3.25 ▲0.0337.00 ▲0.22

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please fix the following
  • The plugin illegally modified 2 files (5.71KB) outside of "wp-content/plugins/speed-up-browser-caching/" and "wp-content/uploads/"
    • (new file) speed-up-backup-2023-10-09_200433.htaccess
    • (modified) .htaccess
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Speed Up - Browser Caching
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.79 ▲0.431.87 ▲0.0442.72 ▼1.12
Dashboard /wp-admin2,203 ▲124.84 ▼0.01112.86 ▼0.8147.32 ▲4.80
Posts /wp-admin/edit.php2,089 ▼02.14 ▲0.1037.36 ▼2.8532.44 ▼5.92
Add New Post /wp-admin/post-new.php1,533 ▼023.03 ▼0.14650.41 ▼3.1475.84 ▲26.39
Media Library /wp-admin/upload.php1,385 ▼34.26 ▲0.0597.04 ▲0.8441.55 ▲0.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

speed-up-browser-caching/speed-up-browser-caching.php Passed 13 tests

The main PHP script in "Speed Up - Browser Caching" version 1.0.10 is automatically included on every request by WordPress
79 characters long description:
Help browser to cache a local copy of static files and improve page load times.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin153 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP174110153

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity4.42
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods1191.67%
▷ Public methods541.67%
▷ Protected methods00.00%
▷ Private methods758.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin