94% webtimer-plw

Code Review | WebTimer

WordPress plugin WebTimer scored 94% from 54 tests.

About plugin

  • Plugin page: webtimer-plw
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 5.8.1
  • First release: Jul 1, 2015
  • Latest release: Jul 3, 2015
  • Number of updates: 20
  • Update frequency: every 0.3 days
  • Top authors: guibalg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,066 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼149.97ms] Passed 4 tests

This is a short check of server-side resources used by WebTimer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0343.79 ▲8.21
Dashboard /wp-admin3.09 ▲0.0454.09 ▼7.75
Posts /wp-admin/edit.php3.14 ▲0.0348.70 ▼7.74
Add New Post /wp-admin/post-new.php5.45 ▲0.0198.68 ▼577.31
Media Library /wp-admin/upload.php3.03 ▲0.0334.33 ▼7.08
WebTimer /wp-admin/options-general.php?page=my-slug3.0030.60

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WebTimer: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,789 ▲21716.21 ▲0.4914.87 ▲5.5148.33 ▼4.85
Dashboard /wp-admin2,972 ▲416.10 ▼0.02154.07 ▼49.25118.70 ▼4.37
Posts /wp-admin/edit.php2,741 ▲22.71 ▼0.0065.52 ▼20.5997.92 ▼0.76
Add New Post /wp-admin/post-new.php1,686 ▲10118.43 ▲1.74474.85 ▲17.20117.64 ▼10.78
Media Library /wp-admin/upload.php1,812 ▲55.02 ▼0.01169.92 ▼14.60121.47 ▼16.46
WebTimer /wp-admin/options-general.php?page=my-slug1,0962.2268.59104.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webtimer-plw/webtimer-plw.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
6 plugin tags: retard, retardement, delay, contents, contenu...

webtimer-plw/webtimer-plw.php 85% from 13 tests

"WebTimer" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The plugin description must be longer than 10 characters (currently 0 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected237 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15312157
PO File1297280

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions9
▷ Named functions9100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo-plw.png11.47KB6.51KB▼ 43.22%