84% gntt-date-time

Code Review | GNTT date Time

WordPress plugin GNTT date Time scored 84% from 54 tests.

About plugin

  • Plugin page: gntt-date-time
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 17, 2016
  • Latest release: Mar 26, 2016
  • Number of updates: 12
  • Update frequency: every 0.8 days
  • Top authors: golzarrahman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 979 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: ▼8.28ms] Passed 4 tests

This is a short check of server-side resources used by GNTT date Time
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.08 ▼5.15
Dashboard /wp-admin3.31 ▲0.0143.51 ▼4.48
Posts /wp-admin/edit.php3.36 ▲0.0143.67 ▼2.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.05 ▼20.11
Media Library /wp-admin/upload.php3.23 ▲0.0034.05 ▼3.39

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for GNTT date Time
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,966 ▲23113.90 ▼0.689.90 ▲8.1642.02 ▲1.09
Dashboard /wp-admin2,208 ▲204.85 ▼0.08115.53 ▲12.0044.05 ▲0.65
Posts /wp-admin/edit.php2,091 ▼12.00 ▲0.0133.69 ▼8.7131.96 ▼2.36
Add New Post /wp-admin/post-new.php1,531 ▼223.52 ▲0.44660.83 ▼2.3649.73 ▼7.82
Media Library /wp-admin/upload.php1,393 ▲54.18 ▼0.05101.61 ▲3.6144.38 ▲1.17

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gntt-date-time/date_time.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: calendae date time, date time, gntt, date, time...

gntt-date-time/date_time.php 92% from 13 tests

The principal PHP file in "GNTT date Time" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("gntt-date-time.php" instead of "date_time.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin91 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12048
CSS10132
PHP121111

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.88KB1.24KB▼ 34.20%