84% avoid-googles-cache

Code Review | Avoid Google's Cache

WordPress plugin Avoid Google's Cache scored 84% from 54 tests.

About plugin

  • Plugin page: avoid-googles-cache
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 16, 2010
  • Latest release: Mar 23, 2023
  • Number of updates: 21
  • Update frequency: every 217.7 days
  • Top authors: kezze (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 3,778 total downloads


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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.35ms] Passed 4 tests

A check of server-side resources used by Avoid Google's Cache
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.24 ▼0.56
Dashboard /wp-admin3.31 ▲0.0144.57 ▼2.51
Posts /wp-admin/edit.php3.36 ▲0.0046.19 ▼2.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.71 ▼12.75
Media Library /wp-admin/upload.php3.23 ▲0.0033.54 ▼3.40

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Avoid Google's Cache
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.31 ▼1.094.24 ▲2.3940.90 ▼3.03
Dashboard /wp-admin2,206 ▲184.91 ▲0.03109.14 ▼7.0437.88 ▼6.74
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0139.40 ▼0.6033.61 ▼4.09
Add New Post /wp-admin/post-new.php1,534 ▼023.20 ▲0.20583.16 ▼105.0060.06 ▲9.49
Media Library /wp-admin/upload.php1,382 ▼04.23 ▲0.0698.02 ▼5.8343.36 ▼2.06

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avoid-googles-cache/avoid-googles-cache.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: google, cache, internet archive, googles cache, google cache

avoid-googles-cache/avoid-googles-cache.php Passed 13 tests

The principal PHP file in "Avoid Google's Cache" v. 1.2.1 is loaded by WordPress automatically on each request
67 characters long description:
Avoid getting your blog cached by e.g. Google and Internet Archive.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin