83% powered-cache

Code Review | Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score

WordPress plugin Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score scored83%from 54 tests.

About plugin

  • Plugin page: powered-cache
  • Plugin version: 3.3.1
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Apr 7, 2017
  • Latest release: Nov 1, 2023
  • Number of updates: 72
  • Update frequency: every 33.3 days
  • Top authors: m_uysl (52.78%)poweredcache (48.61%)

Code review

54 tests

User reviews

45 reviews

Install metrics

2,000+ active /67,372 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.52MB] [CPU: ▲3.70ms] Passed 4 tests

Server-side resources used by Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.02 ▲1.5652.99 ▲8.42
Dashboard /wp-admin4.87 ▲1.5260.19 ▼0.22
Posts /wp-admin/edit.php4.92 ▲1.5656.12 ▲9.97
Add New Post /wp-admin/post-new.php7.41 ▲1.5294.69 ▼3.39
Media Library /wp-admin/upload.php4.73 ▲1.5045.49 ▲12.54

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

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • There were 5 files (17.31KB) illegally modified outside of "wp-content/plugins/powered-cache/" and "wp-content/uploads/"
    • (modified) .htaccess
    • (modified) wp-config.php
    • (new file) wp-content/cache/.htaccess
    • (new file) wp-content/pc-config/config-wp.com.php
    • (new file) wp-content/advanced-cache.php
Filesystem: 223 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
powered_cache_db_version
widget_recent-posts
powered_cache_settings

Browser metrics Passed 4 tests

An overview of browser requirements for Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲9214.13 ▼0.152.00 ▲0.2441.70 ▼2.91
Dashboard /wp-admin2,248 ▲715.64 ▼0.0389.10 ▼9.6940.59 ▼2.75
Posts /wp-admin/edit.php2,150 ▲502.01 ▲0.0535.95 ▲0.3435.25 ▲1.92
Add New Post /wp-admin/post-new.php1,563 ▲3723.56 ▲0.43721.70 ▲44.4455.18 ▲5.39
Media Library /wp-admin/upload.php1,450 ▲504.26 ▲0.0795.83 ▼5.2641.39 ▼1.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 67× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PoweredCache\\Dependencies\\Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/powered-cache/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/PseudoClassExtension.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'PoweredCache\\Dependencies\\Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/powered-cache/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/IdentifierHandler.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'PoweredCache\\Dependencies\\voku\\helper\\AbstractSimpleXmlDom' not found in wp-content/plugins/powered-cache/includes/classes/Dependencies/voku/helper/SimpleXmlDom.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Powered_Cache_WP_Background_Process' not found in wp-content/plugins/powered-cache/includes/classes/Async/CachePurger.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'PoweredCache\\Dependencies\\voku\\helper\\AbstractDomParser' not found in wp-content/plugins/powered-cache/includes/classes/Dependencies/voku/helper/XmlDomParser.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PoweredCache\\Dependencies\\MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/powered-cache/includes/classes/Dependencies/MatthiasMullie/Minify/JS.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'PoweredCache\\Dependencies\\Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/powered-cache/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/PseudoNode.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'PoweredCache\\Dependencies\\Symfony\\Component\\CssSelector\\Parser\\ParserInterface' not found in wp-content/plugins/powered-cache/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/HashParser.php:29
    • > PHP Fatal error
      Uncaught Error: Interface 'PoweredCache\\Dependencies\\Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/powered-cache/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/StringHandler.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'PoweredCache\\Dependencies\\Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/powered-cache/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/SelectorNode.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

powered-cache/powered-cache.php 92% from 13 tests

"Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score" version 3.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected21,840 lines of code in 196 files:
LanguageFilesBlank linesComment linesLines of code
PHP1625,64012,84120,905
JavaScript1610946649
SVG200191
JSON20049
CSS1252424
Markdown16012
XML10010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity19.21
▷ Minimum class complexity1.00
▷ Maximum class complexity175.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity87.00
Code structure
Namespaces50
Interfaces17
Traits0
Classes109
▷ Abstract classes1211.01%
▷ Concrete classes9788.99%
▷ Final classes55.15%
Methods1,327
▷ Static methods836.25%
▷ Public methods1,13985.83%
▷ Protected methods1168.74%
▷ Private methods725.43%
Functions282
▷ Named functions22880.85%
▷ Anonymous functions5419.15%
Constants108
▷ Global constants2624.07%
▷ Class constants8275.93%
▷ Public constants82100.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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/select-arrow.png0.30KB0.21KB▼ 30.19%
dist/images/select-arrow.png0.18KB0.16KB▼ 11.76%
assets/images/select-arrow@2x.png0.53KB0.34KB▼ 36.51%
dist/images/select-arrow@2x.png0.22KB0.21KB▼ 7.83%