78% simple-cache-killer

Code Review | Simple Cache Killer

WordPress plugin Simple Cache Killer scored78%from 54 tests.

About plugin

  • Plugin page: simple-cache-killer
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Feb 27, 2014
  • Latest release: Sep 8, 2014
  • Number of updates: 7
  • Update frequency: every 27.6 days
  • Top authors: jcummings1974 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,614 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.00MB] [CPU: ▼7.23ms] Passed 4 tests

Analyzing server-side resources used by Simple Cache Killer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0628.36 ▼11.44
Dashboard /wp-admin3.32 ▲0.0247.96 ▼5.29
Posts /wp-admin/edit.php3.38 ▲0.0247.18 ▼3.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.29 ▼9.06
Media Library /wp-admin/upload.php3.25 ▲0.0237.71 ▼2.81
SCK Options /wp-admin/options-general.php?page=sck3.1935.88

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Simple Cache Killer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.42 ▲0.042.15 ▼0.0045.81 ▼1.17
Dashboard /wp-admin2,199 ▲225.57 ▲0.0594.17 ▲3.0843.63 ▼0.38
Posts /wp-admin/edit.php2,086 ▼141.99 ▲0.0235.67 ▼1.1537.08 ▼0.71
Add New Post /wp-admin/post-new.php1,529 ▼023.85 ▲0.74679.60 ▲18.9357.53 ▲7.37
Media Library /wp-admin/upload.php1,404 ▲44.20 ▼0.09109.13 ▼1.8348.42 ▲2.72
SCK Options /wp-admin/options-general.php?page=sck9192.0023.9540.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=sck
    • > Notice in wp-content/plugins/simple-cache-killer/sck-options.php+54
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-cache-killer/sck-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-cache-killer/sck-options.php:2

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: caching, cache, pragma no-cache, cache-control, meta http-equiv

simple-cache-killer/simple-cache-killer.php 92% from 13 tests

This is the main PHP file of "Simple Cache Killer" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 142 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
No dangerous file extensions were detected82 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP282282

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin