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.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.3
  • WordPress version: 6.3.1
  • First release: Sep 2, 2015
  • Latest release: Sep 11, 2023
  • Number of updates: 39
  • Update frequency: every 75.2 days
  • Top authors: mekshq (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

10,000+ active / 184,997 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.27ms] Passed 4 tests

Server-side resources used by Meks Time Ago
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0456.77 ▲3.00
Dashboard /wp-admin3.33 ▲0.0269.89 ▼8.25
Posts /wp-admin/edit.php3.38 ▲0.0258.52 ▼16.59
Add New Post /wp-admin/post-new.php5.91 ▲0.02110.65 ▼1.16
Media Library /wp-admin/upload.php3.25 ▲0.0251.76 ▼19.06

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Meks Time Ago
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼013.32 ▼1.124.97 ▲2.1643.94 ▼29.41
Dashboard /wp-admin2,206 ▼04.85 ▼0.03102.63 ▼102.8844.17 ▼34.76
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0137.86 ▼14.3237.69 ▼16.49
Add New Post /wp-admin/post-new.php1,412 ▼12117.98 ▼5.12607.05 ▼281.4152.34 ▼10.15
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.09108.70 ▼1.4653.56 ▲1.70

Uninstaller [IO: ✅] [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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

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
9 plugin tags: post, the_date, date, page, ago...

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

The primary PHP file in "Meks Time Ago" version 1.1.7 is used by WordPress to initiate all plugin functionality
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 check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin334 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP398159231
PO File23232103

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.31
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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin