90% page-cache-on-cloudflare

Code Review | Page Cache on Cloudflare

WordPress plugin Page Cache on Cloudflare scored90%from 54 tests.

About plugin

  • Plugin page: page-cache-on-clo...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-5.2.3
  • WordPress version: 6.3.1
  • First release: Nov 1, 2019
  • Latest release: Feb 18, 2020
  • Number of updates: 7
  • Update frequency: every 15.9 days
  • Top authors: palessit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /735 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.32MB] [CPU: ▼13.24ms] Passed 4 tests

Analyzing server-side resources used by Page Cache on Cloudflare
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.86 ▼34.32
Dashboard /wp-admin3.34 ▲0.0441.05 ▼7.15
Posts /wp-admin/edit.php3.39 ▲0.0344.16 ▼6.34
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.73 ▼5.15
Media Library /wp-admin/upload.php3.26 ▲0.0332.28 ▼0.32

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Page Cache on Cloudflare
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.20 ▼1.112.21 ▲0.5638.61 ▼2.58
Dashboard /wp-admin2,223 ▲714.89 ▼0.68111.71 ▼1.5542.69 ▼5.27
Posts /wp-admin/edit.php2,106 ▲202.16 ▲0.1235.52 ▼2.4732.50 ▼4.85
Add New Post /wp-admin/post-new.php1,522 ▼623.18 ▲5.00648.50 ▲38.7850.13 ▼17.50
Media Library /wp-admin/upload.php1,408 ▲204.22 ▼0.08100.02 ▲3.2041.80 ▼3.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (No screenshots) image missing
You can take inspiration from this readme.txt

page-cache-on-cloudflare/page-cache-on-cloudflare.php Passed 13 tests

Analyzing the main PHP file in "Page Cache on Cloudflare" version 1.2.0
135 characters long description:
The fastest cache HTML pages on the Cloudflare with purge by button and automatic. You can specify URLs and cookies to exclude caching.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin557 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP59230515
JavaScript10030
CSS10012

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity19.25
▷ Minimum class complexity4.00
▷ Maximum class complexity38.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants14.55%
▷ Class constants2195.45%
▷ Public constants21100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin