84% sbw-timeline

Code Review | SBW Timeline

WordPress plugin SBW Timeline scored84%from 54 tests.

About plugin

  • Plugin page: sbw-timeline
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.1-5.1
  • WordPress version: 6.3.1
  • First release: May 7, 2019
  • Latest release: May 7, 2019
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: F.Ilona (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /498 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
The plugin installed gracefully, with no errors

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

Server-side resources used by SBW Timeline
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0434.21 ▼1.84
Dashboard /wp-admin3.34 ▼0.0044.46 ▼13.66
Posts /wp-admin/edit.php3.39 ▲0.0346.63 ▼2.08
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.61 ▼2.31
Media Library /wp-admin/upload.php3.27 ▲0.0336.14 ▲2.16
Timeline Events /wp-admin/edit.php?post_type=sbw_timeline_event3.3135.85
Add New /wp-admin/post-new.php?post_type=sbw_timeline_event3.3845.14

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SBW Timeline
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.24 ▼1.081.74 ▲0.0644.25 ▲0.84
Dashboard /wp-admin2,233 ▲444.83 ▼0.16108.87 ▼6.1638.69 ▼8.99
Posts /wp-admin/edit.php2,116 ▲272.00 ▼0.0639.63 ▲1.3035.37 ▼2.94
Add New Post /wp-admin/post-new.php1,565 ▲2323.08 ▲5.02651.28 ▼23.8554.39 ▼5.70
Media Library /wp-admin/upload.php1,412 ▲274.22 ▼0.03101.04 ▼2.4743.75 ▼3.21
Timeline Events /wp-admin/edit.php?post_type=sbw_timeline_event1,0801.9330.9031.23
Add New /wp-admin/post-new.php?post_type=sbw_timeline_event2,2397.71173.4659.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sbw-timeline/sbw-timeline.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: timeline, events

sbw-timeline/sbw-timeline.php Passed 13 tests

The main PHP script in "SBW Timeline" version 1.0.1 is automatically included on every request by WordPress
135 characters long description:
SBW Timeline is an easy to use plugin that let's you create a responsive, vertical timeline perfect to feature on your wedding website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin263 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP199138
CSS1200125

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin