89% timeline-express-html-excerpt-add-on

Code Review | Timeline Express HTML Excerpts Add-on

WordPress plugin Timeline Express HTML Excerpts Add-on scored89%from 54 tests.

About plugin

  • Plugin page: timeline-express-...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 21, 2016
  • Latest release: Mar 22, 2023
  • Number of updates: 10
  • Update frequency: every 237.3 days
  • Top authors: eherman24 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /12,897 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.85ms] Passed 4 tests

Server-side resources used by Timeline Express HTML Excerpts Add-on
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.95 ▼7.11
Dashboard /wp-admin3.32 ▲0.0250.23 ▼4.38
Posts /wp-admin/edit.php3.37 ▲0.0253.42 ▲6.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.46 ▼4.25
Media Library /wp-admin/upload.php3.24 ▲0.0233.58 ▼3.67

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Timeline Express HTML Excerpts Add-on
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.23 ▼1.141.76 ▼0.0842.40 ▼0.33
Dashboard /wp-admin2,227 ▲395.88 ▲0.01106.53 ▼12.1841.66 ▼4.96
Posts /wp-admin/edit.php2,110 ▲212.05 ▼0.0143.35 ▲6.3236.84 ▲1.46
Add New Post /wp-admin/post-new.php1,559 ▲4023.04 ▼0.02694.13 ▲40.3755.05 ▼0.92
Media Library /wp-admin/upload.php1,409 ▲244.22 ▲0.0596.90 ▼6.3645.09 ▼7.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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)
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 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
These attributes need your attention:
  • Requires at least: Version format is invalid
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

timeline-express-html-excerpt-add-on/timeline-express-html-excerpts-add-on.php 85% from 13 tests

The main PHP script in "Timeline Express HTML Excerpts Add-on" version 1.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("timeline-express-html-excerpt-add-on.php" instead of "timeline-express-html-excerpts-add-on.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected89 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP46911689

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin