84% tieexpire-automated-post-expiry

Code Review | TIEexpire Automated Post Expiry

WordPress plugin TIEexpire Automated Post Expiry scored84%from 54 tests.

About plugin

  • Plugin page: tieexpire-automat...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Aug 21, 2013
  • Latest release: Sep 10, 2014
  • Number of updates: 46
  • Update frequency: every 29.2 days
  • Top authors: TIEro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,638 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.64ms] Passed 4 tests

A check of server-side resources used by TIEexpire Automated Post Expiry
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.20 ▼1.67
Dashboard /wp-admin3.42 ▲0.1248.42 ▼3.76
Posts /wp-admin/edit.php3.47 ▲0.1155.61 ▲5.68
Add New Post /wp-admin/post-new.php6.00 ▲0.1188.43 ▼12.91
Media Library /wp-admin/upload.php3.34 ▲0.1136.00 ▼0.22

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 11 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
TIEtools_notify_poster
db_upgraded
TIEtools_notify_admin
widget_recent-comments
widget_recent-posts
TIEexpire_pub
TIEtools_notify_other
TIEexpire_catsradio
...

Browser metrics Passed 4 tests

A check of browser resources used by TIEexpire Automated Post Expiry
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.38 ▼0.181.81 ▼0.1342.95 ▼1.60
Dashboard /wp-admin2,208 ▲285.55 ▼0.1585.83 ▼14.9239.92 ▼2.67
Posts /wp-admin/edit.php2,116 ▲192.01 ▲0.0140.60 ▲4.2737.84 ▲1.82
Add New Post /wp-admin/post-new.php1,558 ▲1323.63 ▲0.58624.24 ▼41.1854.91 ▼4.60
Media Library /wp-admin/upload.php1,416 ▲164.22 ▲0.0098.81 ▼5.4144.63 ▼3.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 11 options
    • TIEexpire_pub
    • TIEexpire_catsradio
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • TIEtools_notify_poster
    • TIEtools_notify_other
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tieexpire-automated-post-expiry/TIEexpire.php:15

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: expiration, automatic, category, categories, automated...

tieexpire-automated-post-expiry/TIEexpire.php 92% from 13 tests

The principal PHP file in "TIEexpire Automated Post Expiry" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tieexpire-automated-post-expiry.php" instead of "TIEexpire.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected442 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16559442

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.78
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
donate.png3.91KB1.98KB▼ 49.29%
expire.png2.21KB1.81KB▼ 18.03%