84% insert-update-time

Code Review | Insert Update Time

WordPress plugin Insert Update Time scored 84% from 54 tests.

About plugin

  • Plugin page: insert-update-time
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8.3
  • WordPress version: 6.3.1
  • First release: Sep 13, 2017
  • Latest release: Nov 12, 2017
  • Number of updates: 14
  • Update frequency: every 4.9 days
  • Top authors: bestony (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 730 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼7.74ms] Passed 4 tests

A check of server-side resources used by Insert Update Time
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.74 ▼2.00
Dashboard /wp-admin3.29 ▼0.0141.28 ▼4.97
Posts /wp-admin/edit.php3.36 ▲0.0144.93 ▲0.01
Add New Post /wp-admin/post-new.php5.44 ▼0.4468.99 ▼23.78
Media Library /wp-admin/upload.php3.21 ▼0.0232.89 ▼0.21

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Insert Update Time
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.17 ▼1.091.51 ▼0.0237.52 ▼2.02
Dashboard /wp-admin2,217 ▲264.84 ▼1.04112.46 ▲14.5044.43 ▲2.12
Posts /wp-admin/edit.php2,091 ▲22.05 ▲0.0439.03 ▲4.9035.62 ▼0.07
Add New Post /wp-admin/post-new.php1,549 ▲2817.99 ▼5.13607.31 ▼64.7353.78 ▲0.88
Media Library /wp-admin/upload.php1,390 ▲24.16 ▼0.0898.25 ▼10.3243.93 ▼5.79

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 did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just 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 is_admin() in wp-content/plugins/insert-update-time/insert-update-time.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention: The official readme.txt might help

insert-update-time/insert-update-time.php Passed 13 tests

This is the main PHP file of "Insert Update Time" version 0.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
Insert A Update Time log into your Content;

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin111 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1145053
PO File17833
JavaScript11215
CSS10010

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.22
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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
icon.png0.59KB0.33KB▼ 45.05%