10% post-timer

Code Review | Post Timer

WordPress plugin Post Timer scored10%from 54 tests.

About plugin

  • Plugin page: post-timer
  • Plugin version: 4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 16, 2016
  • Latest release: Nov 24, 2023
  • Number of updates: 31
  • Update frequency: every 85.7 days
  • Top authors: AddWeb Solution Pvt. Ltd. (90.32%)snehalb890 (12.9%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /2,486 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/post-timer/includes/timer.php+366
    Undefined offset: 1

Server metrics [RAM: ▼1.88MB] [CPU: ▼56.37ms] Passed 4 tests

This is a short check of server-side resources used by Post Timer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.344.45 ▼36.26
Dashboard /wp-admin2.14 ▼1.216.12 ▼57.60
Posts /wp-admin/edit.php2.14 ▼1.227.87 ▼41.25
Add New Post /wp-admin/post-new.php2.14 ▼3.756.27 ▼90.36
Media Library /wp-admin/upload.php2.14 ▼1.096.82 ▼32.05

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
post-timer
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Post Timer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,972 ▲22515.03 ▲0.811.78 ▼0.0440.74 ▼3.75
Dashboard /wp-admin2,374 ▲1966.45 ▲0.79120.59 ▲12.2142.09 ▼3.24
Posts /wp-admin/edit.php2,302 ▲2023.58 ▲1.6455.10 ▲16.8636.22 ▼3.00
Add New Post /wp-admin/post-new.php1,584 ▲5823.49 ▲0.17624.40 ▼79.8939.12 ▼14.51
Media Library /wp-admin/upload.php1,439 ▲424.28 ▲0.1188.38 ▼11.9643.03 ▲0.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/post-timer/includes/timer.php+366
    Undefined offset: 1
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/post-timer/includes/timer.php
    • > /wp-content/plugins/post-timer/includes/admin.php
    • > /wp-content/plugins/post-timer/includes/plugin-setting-page.php

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 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: clock, timer popup, custom post timer, popup, timer...

post-timer/post_timer.php 85% from 13 tests

This is the main PHP file of "Post Timer" version 4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("post-timer.php" instead of "post_timer.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 178 characters long)

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 plugin2,748 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
SVG9461,024
PHP5148190921
CSS316641798
JavaScript2045

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity32.00
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods31
▷ Static methods39.68%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/wewp-ad-plugin-400.png15.32KB8.89KB▼ 42.00%
images/addweb-logo.png11.75KB4.57KB▼ 61.12%
assets/images/wewp-logo1.png51.70KB21.03KB▼ 59.33%
assets/images/addweb-logo.png11.75KB4.57KB▼ 61.12%
assets/images/wewp-logo.png39.91KB20.18KB▼ 49.44%