84% timeline-express-date-time-add-on

Code Review | Timeline Express - Date - Time Add-On

WordPress plugin Timeline Express - Date - Time Add-On scored84%from 54 tests.

About plugin

  • Plugin page: timeline-express-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 11, 2018
  • Latest release: Mar 22, 2023
  • Number of updates: 10
  • Update frequency: every 186.5 days
  • Top authors: codeparrots (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,468 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.43ms] Passed 4 tests

An overview of server-side resources used by Timeline Express - Date - Time Add-On
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.39 ▲1.47
Dashboard /wp-admin3.31 ▲0.0045.29 ▼1.74
Posts /wp-admin/edit.php3.36 ▲0.0045.01 ▼0.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.77 ▼13.28
Media Library /wp-admin/upload.php3.23 ▲0.0037.28 ▲5.15

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Timeline Express - Date - Time Add-On
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.31 ▼1.274.89 ▲3.1043.51 ▲2.90
Dashboard /wp-admin2,206 ▲205.84 ▲0.92100.57 ▼8.0536.31 ▼6.17
Posts /wp-admin/edit.php2,089 ▲212.00 ▼0.0435.62 ▲1.7230.83 ▼1.65
Add New Post /wp-admin/post-new.php1,533 ▼023.50 ▲0.27673.53 ▼10.1658.72 ▲6.34
Media Library /wp-admin/upload.php1,391 ▲34.26 ▲0.05104.10 ▼9.9647.06 ▲2.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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

SRP 50% from 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
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/timeline-express-date-time-add-on/lib/activation.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/timeline-express-date-time-add-on/lib/migration.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

timeline-express-date-time-add-on/timeline-express-date-time-add-on.php Passed 13 tests

The primary PHP file in "Timeline Express - Date - Time Add-On" version 1.0.1 is used by WordPress to initiate all plugin functionality
107 characters long description:
Assign and display times to your announcements with a time selector field alongside the announcement dates.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected354 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5170181310
JavaScript227644

PHP code Passed 2 tests

This is a short overview 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.33
Average class complexity9.00
▷ Minimum class complexity2.00
▷ Maximum class complexity16.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants5
▷ Global constants5100.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
2 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/img/code-parrots-sad-parrot.png4.08KB4.06KB0.43%
lib/img/code-parrots-mascot.png44.14KB18.63KB▼ 57.78%