90% timed-textwidget

Code Review | Timed Textwidget

WordPress plugin Timed Textwidget scored90%from 54 tests.

About plugin

  • Plugin page: timed-textwidget
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.1.1
  • WordPress version: 6.3.1
  • First release: Sep 2, 2014
  • Latest release: Jun 29, 2015
  • Number of updates: 18
  • Update frequency: every 16.7 days
  • Top authors: LuigivdB (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,820 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.29ms] Passed 4 tests

This is a short check of server-side resources used by Timed Textwidget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.88 ▲4.25
Dashboard /wp-admin3.36 ▲0.0247.65 ▼17.95
Posts /wp-admin/edit.php3.41 ▲0.0643.39 ▼1.17
Add New Post /wp-admin/post-new.php5.94 ▲0.0691.36 ▼12.39
Media Library /wp-admin/upload.php3.29 ▲0.0634.44 ▼1.65

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
widget_timedtextwidget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Timed Textwidget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5914.41 ▼0.242.16 ▲0.3343.24 ▼1.22
Dashboard /wp-admin2,200 ▲235.63 ▼0.0484.21 ▼6.2135.90 ▼4.80
Posts /wp-admin/edit.php2,102 ▲22.01 ▼0.1333.14 ▼8.3633.78 ▼3.29
Add New Post /wp-admin/post-new.php1,536 ▲1018.42 ▼5.20648.22 ▼42.6677.82 ▲19.40
Media Library /wp-admin/upload.php1,399 ▼14.18 ▲0.0598.64 ▼17.7743.74 ▼4.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_timedtextwidget
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: content, timed, widget, schedule, hide...

timed-textwidget/timedtextwidget.php 92% from 13 tests

The main PHP file in "Timed Textwidget" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("timed-textwidget.php" instead of "timedtextwidget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin207 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14028127
PO File1202059
CSS14021

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity59.00
▷ Minimum class complexity59.00
▷ Maximum class complexity59.00
Average method complexity10.67
▷ Minimum method complexity1.00
▷ Maximum method complexity26.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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin