84% wp-cloudflare-cache

Code Review | WP Cloudflare Cache

WordPress plugin WP Cloudflare Cache scored 84% from 54 tests.

About plugin

  • Plugin page: wp-cloudflare-cache
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Nov 26, 2019
  • Latest release: Aug 6, 2021
  • Number of updates: 11
  • Update frequency: every 56.4 days
  • Top authors: jumedeenkhan (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

90+ active / 2,721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.10ms] Passed 4 tests

This is a short check of server-side resources used by WP Cloudflare Cache
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.27 ▲3.32
Dashboard /wp-admin3.34 ▲0.0448.83 ▲0.10
Posts /wp-admin/edit.php3.39 ▲0.0441.85 ▼4.97
Add New Post /wp-admin/post-new.php5.94 ▲0.0683.60 ▼2.94
Media Library /wp-admin/upload.php3.26 ▲0.0435.29 ▼0.57
WP Cloudflare Cache /wp-admin/options-general.php?page=wpcc-cache3.2331.95

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Cloudflare Cache
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.54 ▼0.861.66 ▼0.1744.55 ▲5.64
Dashboard /wp-admin2,211 ▲235.87 ▲1.06111.76 ▼4.3243.45 ▼2.20
Posts /wp-admin/edit.php2,094 ▲82.02 ▲0.0236.42 ▲0.3134.88 ▲0.70
Add New Post /wp-admin/post-new.php1,521 ▼1223.20 ▼0.00664.43 ▼6.4254.19 ▼9.95
Media Library /wp-admin/upload.php1,399 ▲174.24 ▲0.0193.29 ▼3.3741.53 ▲1.64
WP Cloudflare Cache /wp-admin/options-general.php?page=wpcc-cache8942.0724.8236.45

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • cf_email_value
    • theysaidso_admin_options
    • widget_recent-posts
    • cf_maxage_value
    • cf_key_value
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cloudflare-cache/lib/class-wp-cloudflare-cache.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-cloudflare-cache/wp-cloudflare-cache.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
Please take inspiration from this readme.txt

wp-cloudflare-cache/wp-cloudflare-cache.php 92% from 13 tests

The entry point to "WP Cloudflare Cache" version 1.0.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected211 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34333193
JavaScript13315
CSS1003

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.38
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin