90% transients-manager

Code Review | Transients Manager

WordPress plugin Transients Manager scored90%from 54 tests.

About plugin

  • Plugin page: transients-manager
  • Plugin version: 2.0.3
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0
  • WordPress version: 6.3.1
  • First release: May 11, 2014
  • Latest release: Aug 2, 2022
  • Number of updates: 35
  • Update frequency: every 85.9 days
  • Top authors: mordauk (82.86%)johnjamesjacoby (14.29%)justinahinon (8.57%)

Code review

54 tests

User reviews

36 reviews

Install metrics

20,000+ active /334,085 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.17MB] [CPU: ▼1.45ms] Passed 4 tests

Server-side resources used by Transients Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1742.54 ▲2.92
Dashboard /wp-admin3.47 ▲0.1746.24 ▲0.81
Posts /wp-admin/edit.php3.58 ▲0.2347.07 ▼4.40
Add New Post /wp-admin/post-new.php6.05 ▲0.1794.12 ▼3.60
Media Library /wp-admin/upload.php3.39 ▲0.1734.91 ▲1.41
Transients /wp-admin/tools.php?page=transients-manager6.1444.23

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Transients Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.26 ▼0.111.72 ▲0.0144.99 ▲0.45
Dashboard /wp-admin2,213 ▲335.60 ▼0.2385.93 ▼0.2237.51 ▼3.20
Posts /wp-admin/edit.php2,118 ▲181.98 ▼0.0134.45 ▼3.1232.75 ▼3.76
Add New Post /wp-admin/post-new.php1,551 ▲2518.58 ▼4.27633.45 ▼6.0152.17 ▼6.21
Media Library /wp-admin/upload.php1,415 ▲124.20 ▼0.02103.05 ▼1.6941.73 ▼3.55
Transients /wp-admin/tools.php?page=transients-manager1,9182.0322.8231.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: tool, transient, cron

transients-manager/transients-manager.php Passed 13 tests

The principal PHP file in "Transients Manager" v. 2.0.3 is loaded by WordPress automatically on each request
75 characters long description:
Provides a familiar interface to view, search, edit, and delete Transients.

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
There were no executable files found in this plugin934 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1266419934

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity87.00
▷ Minimum class complexity87.00
▷ Maximum class complexity87.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods1851.43%
▷ Protected methods38.57%
▷ Private methods1440.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There were not PNG files found in your plugin