84% simple-vertical-timeline

Code Review | Simple Vertical Timeline

WordPress plugin Simple Vertical Timeline scored84%from 54 tests.

About plugin

  • Plugin page: simple-vertical-t...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-4.7
  • WordPress version: 6.3.1
  • First release: Jul 13, 2016
  • Latest release: Jan 21, 2017
  • Number of updates: 23
  • Update frequency: every 8.4 days
  • Top authors: Odyno (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

600+ active /11,624 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.83ms] Passed 4 tests

Analyzing server-side resources used by Simple Vertical Timeline
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.59 ▼6.23
Dashboard /wp-admin3.37 ▲0.0746.40 ▼4.39
Posts /wp-admin/edit.php3.48 ▲0.1346.82 ▼6.39
Add New Post /wp-admin/post-new.php5.95 ▲0.0792.95 ▼10.29
Media Library /wp-admin/upload.php3.29 ▲0.0637.74 ▼0.77
Simple Vertical Timeline /wp-admin/options-general.php?page=SVTPreference3.3332.92

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 160 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
svt_is_enable_social_media
db_upgraded
svt_signe
svt_analitycs
widget_recent-posts

Browser metrics Passed 4 tests

Simple Vertical Timeline: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.43 ▼0.928.39 ▲6.4846.65 ▲1.52
Dashboard /wp-admin2,190 ▲165.55 ▼0.1092.29 ▼7.4538.10 ▼5.63
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0040.48 ▲2.4938.18 ▲1.55
Add New Post /wp-admin/post-new.php1,531 ▲523.11 ▼0.41668.42 ▼37.4257.74 ▼9.32
Media Library /wp-admin/upload.php1,401 ▲104.16 ▼0.0496.97 ▼10.2746.67 ▲1.58
Simple Vertical Timeline /wp-admin/options-general.php?page=SVTPreference1,0762.0027.2431.77

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-vertical-timeline/admin/svt-settings.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-vertical-timeline/admin/views/html-settings-page.inc.php:69

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: There are too many tags (31 tag instead of maximum 10)
The official readme.txt might help

simple-vertical-timeline/simple-vertical-timeline.php 92% from 13 tests

"Simple Vertical Timeline" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin14,203 lines of code in 120 files:
LanguageFilesBlank linesComment linesLines of code
JSON2006,563
HTML117222,585
Sass845317782,314
CSS621141,226
PHP4177158508
PO File27079348
JavaScript611145226
SVG1100219
CoffeeScript2262696
Bourne Shell123867
Markdown124051

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity10.50
▷ Minimum class complexity6.00
▷ Maximum class complexity15.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods310.34%
▷ Public methods2896.55%
▷ Protected methods00.00%
▷ Private methods13.45%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants7
▷ Global constants228.57%
▷ Class constants571.43%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 0.45MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png166.08KB59.85KB▼ 63.96%
js/svtplugin/img/timeevent.png2.06KB1.51KB▼ 26.66%
admin/images/logo.png9.39KB3.67KB▼ 60.88%
assets/screenshot-1.png99.84KB31.65KB▼ 68.30%
admin/images/bug.png0.72KB0.71KB0.41%