84% cacheability

Code Review | Cacheability

WordPress plugin Cacheability scored84%from 54 tests.

About plugin

  • Plugin page: cacheability
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 8, 2022
  • Latest release: Aug 30, 2023
  • Number of updates: 25
  • Update frequency: every 20.4 days
  • Top authors: dvershinin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,455 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

An overview of server-side resources used by Cacheability
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.35 ▼8.33
Dashboard /wp-admin3.33 ▲0.0244.02 ▼9.88
Posts /wp-admin/edit.php3.38 ▲0.0251.19 ▲1.08
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.98 ▼17.87
Media Library /wp-admin/upload.php3.25 ▲0.0236.32 ▼6.60

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Cacheability
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.44 ▼0.211.83 ▼0.1339.84 ▼3.73
Dashboard /wp-admin2,209 ▲305.06 ▼0.75115.85 ▲3.0743.12 ▼4.26
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0240.07 ▼0.5936.74 ▲1.10
Add New Post /wp-admin/post-new.php1,537 ▲1523.05 ▼0.16664.00 ▼21.1152.44 ▼17.44
Media Library /wp-admin/upload.php1,391 ▲34.25 ▼0.0199.56 ▼21.7742.50 ▼6.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cacheability/cacheability.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues 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
7 plugin tags: pagespeed, performance, speed, core web vitals, caching...

cacheability/cacheability.php Passed 13 tests

The primary PHP file in "Cacheability" version 1.1.2 is used by WordPress to initiate all plugin functionality
69 characters long description:
Empowers WordPress with conditional HTTP GET and other cache features

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
Good job! No executable or dangerous file extensions detected77 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1303577

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin