90% we-time-since

Code Review | Wedepohl Engineering Time Since

WordPress plugin Wedepohl Engineering Time Since scored90%from 54 tests.

About plugin

  • Plugin page: we-time-since
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 6.3.1
  • First release: May 18, 2020
  • Latest release: Feb 16, 2022
  • Number of updates: 7
  • Update frequency: every 91.3 days
  • Top authors: mwedepohl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /470 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.46ms] Passed 4 tests

An overview of server-side resources used by Wedepohl Engineering Time Since
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.86 ▼5.87
Dashboard /wp-admin3.31 ▲0.0142.53 ▼12.29
Posts /wp-admin/edit.php3.37 ▲0.0146.80 ▼0.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.69 ▲0.52
Media Library /wp-admin/upload.php3.24 ▲0.0136.21 ▼3.49

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Wedepohl Engineering Time Since
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.111.97 ▲0.0660.22 ▲15.45
Dashboard /wp-admin2,203 ▲145.82 ▲0.86102.81 ▼18.8636.06 ▼6.47
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0434.86 ▲0.2234.97 ▲1.37
Add New Post /wp-admin/post-new.php1,533 ▲1423.02 ▼0.37673.00 ▼32.4462.71 ▲1.73
Media Library /wp-admin/upload.php1,391 ▲64.22 ▲0.0296.12 ▼6.4440.76 ▼5.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output 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)
There were no browser issues found

Optimizations

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
4 plugin tags: span, days, time, years

we-time-since/we-time-since.php Passed 13 tests

The main PHP script in "Wedepohl Engineering Time Since" version 1.0.5 is automatically included on every request by WordPress
51 characters long description:
Display the time (years/days) since a certain date.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin42 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2176342

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin