94% write-time

Code Review | article write time

WordPress plugin article write time scored 94% from 54 tests.

About plugin

  • Plugin page: write-time
  • Plugin version: 0.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1
  • WordPress version: 5.8.1
  • First release: Nov 9, 2014
  • Latest release: Dec 17, 2014
  • Number of updates: 20
  • Update frequency: every 2.0 days
  • Top authors: jquerybloger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 653 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼138.39ms] Passed 4 tests

Analyzing server-side resources used by article write time
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1838.12 ▲13.91
Dashboard /wp-admin3.13 ▲0.0746.94 ▼6.49
Posts /wp-admin/edit.php3.18 ▲0.0750.86 ▲5.89
Add New Post /wp-admin/post-new.php5.50 ▲0.07103.50 ▼552.56
Media Library /wp-admin/upload.php3.07 ▲0.0636.63 ▼0.40

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by article write time
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲15115.96 ▲0.3910.45 ▲0.1347.67 ▼2.70
Dashboard /wp-admin2,986 ▲495.90 ▼0.34169.12 ▲3.02117.25 ▲9.15
Posts /wp-admin/edit.php2,759 ▲202.72 ▲0.0076.17 ▼0.2591.44 ▼10.77
Add New Post /wp-admin/post-new.php1,696 ▲8115.69 ▼5.73414.45 ▲88.07115.93 ▲5.71
Media Library /wp-admin/upload.php1,768 ▼425.02 ▲0.01162.64 ▲1.01123.90 ▲6.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 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 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 add_action() in wp-content/plugins/write-time/write-time.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (Example that was displayed) image not found
You can look at the official readme.txt

write-time/write-time.php Passed 13 tests

This is the main PHP file of "article write time" version 0.3.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
50 characters long description:
To display the time it took to write the article .

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 plugin925 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP16221418
JavaScript2411396
PO File23,1208,12962
CSS19049

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin