90% meks-time-ago

Code Review | Meks Time Ago

WordPress plugin Meks Time Ago scored 90% from 54 tests.

About plugin

  • Plugin page: meks-time-ago
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.9
  • WordPress version: 5.9.2
  • First release: Sep 2, 2015
  • Latest release: Mar 4, 2022
  • Number of updates: 36
  • Update frequency: every 66.0 days
  • Top authors: mekshq (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

20,000+ active / 158,237 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼304.90ms] Passed 4 tests

Server-side resources used by Meks Time Ago
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.26 ▲0.0666.80 ▲9.29
Dashboard /wp-admin4.11 ▲0.0842.64 ▼43.51
Posts /wp-admin/edit.php4.40 ▲0.0748.36 ▲2.36
Add New Post /wp-admin/post-new.php7.62 ▲0.03102.84 ▼1,174.28
Media Library /wp-admin/upload.php4.05 ▲0.0729.81 ▼4.17

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

Meks Time Ago: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,820 ▲7615.86 ▼0.136.13 ▼0.202.87 ▲0.42
Dashboard /wp-admin2,917 ▲666.17 ▼0.01118.08 ▼20.18171.40 ▲3.32
Posts /wp-admin/edit.php2,713 ▲413.27 ▲0.0464.69 ▼36.02141.21 ▼2.88
Add New Post /wp-admin/post-new.php1,679 ▲717.61 ▼3.21402.78 ▼78.55196.04 ▲33.87
Media Library /wp-admin/upload.php1,715 ▲145.58 ▲0.05139.13 ▼3.04247.86 ▲62.96

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 2 options in the database
    • has_transient
    • track_transient

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

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


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
9 plugin tags: the_time, custom, post, format, date...

meks-time-ago/meks-time-ago.php Passed 13 tests

The main file in "Meks Time Ago" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
120 characters long description:
Automatically change your post date display to "time ago" format like "1 hour ago", "3 weeks ago", "2 months ago" etc...

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
Everything looks great! No dangerous files found in this plugin394 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File23232103

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.50
▷ Minimum class complexity8.00
▷ Maximum class complexity19.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin