84% flush-cache-login

Code Review | Flush Cache Login

WordPress plugin Flush Cache Login scored84%from 54 tests.

About plugin

  • Plugin page: flush-cache-login
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 18, 2013
  • Latest release: Jan 23, 2014
  • Number of updates: 5
  • Update frequency: every 31.8 days
  • Top authors: deCube (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /1,553 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.00MB] [CPU: ▼0.16ms] Passed 4 tests

Server-side resources used by Flush Cache Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0140.47 ▲2.00
Dashboard /wp-admin3.31 ▲0.0052.65 ▲4.59
Posts /wp-admin/edit.php3.36 ▲0.0046.51 ▲0.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.55 ▼0.95
Media Library /wp-admin/upload.php3.23 ▲0.0033.84 ▼1.84

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Flush Cache Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.43 ▼0.152.21 ▲0.6343.91 ▲2.72
Dashboard /wp-admin2,203 ▲155.83 ▲0.9498.86 ▼12.3638.19 ▼8.48
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0235.02 ▼6.8229.52 ▼10.40
Add New Post /wp-admin/post-new.php1,513 ▼2917.63 ▼0.56680.66 ▲84.5073.59 ▲22.84
Media Library /wp-admin/upload.php1,391 ▼04.19 ▲0.0296.65 ▼1.1842.46 ▼0.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flush-cache-login/flush-cache-login.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

flush-cache-login/flush-cache-login.php 92% from 13 tests

This is the main PHP file of "Flush Cache Login" version 0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected44 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP162729
JavaScript14015

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin