84% tietools-automatic-maintenance-kit

Code Review | TIEtools Automatic Maintenance Kit

WordPress plugin TIEtools Automatic Maintenance Kit scored84%from 54 tests.

About plugin

  • Plugin page: tietools-automati...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Nov 13, 2013
  • Latest release: Sep 10, 2014
  • Number of updates: 25
  • Update frequency: every 12.0 days
  • Top authors: TIEro (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /4,459 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.21MB] [CPU: ▼2.99ms] Passed 4 tests

An overview of server-side resources used by TIEtools Automatic Maintenance Kit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2141.50 ▲2.66
Dashboard /wp-admin3.52 ▲0.2244.38 ▼5.40
Posts /wp-admin/edit.php3.57 ▲0.2144.61 ▼1.78
Add New Post /wp-admin/post-new.php6.10 ▲0.2183.48 ▼6.88
Media Library /wp-admin/upload.php3.44 ▲0.2134.67 ▲2.11

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 23 new options
New WordPress options
TIEdupedeleter_status_published
TIEtools_notify_poster
TIEtools_notify_power
widget_theysaidso_widget
TIEtools_expiry_power
TIEtools_images_trash
widget_recent-posts
db_upgraded
TIEdupedeleter_powerbutton
widget_recent-comments
...

Browser metrics Passed 4 tests

Checking browser requirements for TIEtools Automatic Maintenance Kit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.23 ▼1.411.75 ▲0.0342.83 ▲2.94
Dashboard /wp-admin2,225 ▲484.88 ▼1.02100.11 ▼4.6038.94 ▼3.92
Posts /wp-admin/edit.php2,105 ▲372.06 ▲0.0333.33 ▼1.7934.31 ▼1.57
Add New Post /wp-admin/post-new.php1,527 ▲817.54 ▼5.73694.15 ▲28.7255.48 ▼11.05
Media Library /wp-admin/upload.php1,401 ▲134.19 ▲0.0298.76 ▼11.3042.00 ▼5.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 23 options
    • TIEdupedeleter_status_published
    • TIEtools_images_power
    • TIEtools_notify_dupes
    • TIEtools_expiry_power
    • TIEexpire_pub
    • TIEtools_notify_poster
    • TIEtools_logs_power
    • can_compress_scripts
    • TIEdupedeleter_catsradio
    • TIEtools_notify_admin
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tietools-automatic-maintenance-kit/TIEtools.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

tietools-automatic-maintenance-kit/TIEtools.php 92% from 13 tests

This is the main PHP file of "TIEtools Automatic Maintenance Kit" version 1.2.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:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tietools-automatic-maintenance-kit.php" instead of "TIEtools.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin898 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1116101832
CSS19066

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.83
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%
Functions18
▷ Named functions18100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
info.png0.48KB0.47KB▼ 2.43%
tietools.png1.36KB1.22KB▼ 9.85%