84% clear-transient-from-dashboard

Code Review | Clear Transient From Dashboard

WordPress plugin Clear Transient From Dashboard scored84%from 54 tests.

About plugin

  • Plugin page: clear-transient-f...
  • Plugin version: 2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.5.3
  • WordPress version: 6.3.1
  • First release: Jun 19, 2018
  • Latest release: Nov 30, 2020
  • Number of updates: 11
  • Update frequency: every 81.4 days
  • Top authors: minkapi (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,666 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Clear Transient From Dashboard
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.00 ▼5.73
Dashboard /wp-admin3.31 ▼0.0343.83 ▼16.29
Posts /wp-admin/edit.php3.36 ▲0.0044.64 ▼2.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.50 ▼5.25
Media Library /wp-admin/upload.php3.23 ▲0.0033.41 ▲1.85

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

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

Browser metrics Passed 4 tests

Clear Transient From Dashboard: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲11313.41 ▼0.831.73 ▼0.1337.34 ▼10.17
Dashboard /wp-admin2,254 ▲694.92 ▼0.91111.54 ▲9.3140.98 ▼2.56
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0538.42 ▲4.4033.88 ▼2.12
Add New Post /wp-admin/post-new.php1,535 ▼723.37 ▲5.18593.04 ▼21.7051.65 ▲8.59
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.1695.25 ▼0.9443.54 ▲1.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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 everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 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/clear-transient-from-dashboard/clear-transient-from-dashboard.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: transient

clear-transient-from-dashboard/clear-transient-from-dashboard.php Passed 13 tests

The main file in "Clear Transient From Dashboard" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
69 characters long description:
Logging in as admin, you can clear all transients from the dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin51 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP262351

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.75
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
PNG images were not found in this plugin