10% speed-up-page-cache

Code Review | Speed Up - Page Cache

WordPress plugin Speed Up - Page Cache scored10%from 54 tests.

About plugin

  • Plugin page: speed-up-page-cache
  • Plugin version: 1.0.20
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Oct 13, 2019
  • Latest release: May 1, 2023
  • Number of updates: 47
  • Update frequency: every 27.6 days
  • Top authors: nigro.simone (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /6,837 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/speed-up-page-cache/include/config-manager.php+110
    file_put_contents(wp-content/cache/speed-up-page-cache/config.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.28MB] [CPU: ▼8.05ms] Passed 4 tests

Server-side resources used by Speed Up - Page Cache
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2443.70 ▼3.00
Dashboard /wp-admin3.58 ▲0.2849.29 ▼5.58
Posts /wp-admin/edit.php3.68 ▲0.3246.61 ▼0.52
Add New Post /wp-admin/post-new.php6.27 ▲0.3979.09 ▼22.22
Media Library /wp-admin/upload.php3.52 ▲0.2934.54 ▼1.38
Page Cache /wp-admin/options-general.php?page=speed-up-page-cache3.4433.58

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

A short overview of filesystem and database impact
Please fix the following
  • Illegal file modification detected: 3 files (5.86KB) outside of "wp-content/plugins/speed-up-page-cache/" and "wp-content/uploads/"
    • (modified) .htaccess
    • (new file) wp-content/advanced-cache.php
    • (modified) wp-config.php
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Speed Up - Page Cache
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲10014.61 ▲0.282.07 ▲0.3243.58 ▼4.39
Dashboard /wp-admin2,222 ▲515.65 ▲0.0384.49 ▼17.8444.78 ▲4.52
Posts /wp-admin/edit.php2,124 ▲212.01 ▼0.0237.32 ▼2.7534.70 ▼2.31
Add New Post /wp-admin/post-new.php1,546 ▲2023.07 ▼0.54698.34 ▲47.6055.65 ▼24.28
Media Library /wp-admin/upload.php1,424 ▲244.22 ▲0.04101.04 ▼2.1544.48 ▼4.39
Page Cache /wp-admin/options-general.php?page=speed-up-page-cache9622.1622.7630.19

Uninstaller [IO: ▲0.00MB] [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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: optimize, performance, front-end optimization, cache, caching...

speed-up-page-cache/speed-up-page-cache.php Passed 13 tests

"Speed Up - Page Cache" version 1.0.20's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
29 characters long description:
A simple page caching plugin.

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 plugin1,128 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP102917391,128

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity21.67
▷ Minimum class complexity2.00
▷ Maximum class complexity57.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods75
▷ Static methods2938.67%
▷ Public methods5674.67%
▷ Protected methods00.00%
▷ Private methods1925.33%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants13
▷ Global constants17.69%
▷ Class constants1292.31%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected