89% flik-timeline

Code Review | Flik Timeline

WordPress plugin Flik Timeline scored89%from 54 tests.

About plugin

  • Plugin page: flik-timeline
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 15, 2016
  • Latest release: Nov 18, 2016
  • Number of updates: 5
  • Update frequency: every 8.2 days
  • Top authors: rufataskerov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,814 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼12.19ms] Passed 4 tests

Server-side resources used by Flik Timeline
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.78 ▼3.92
Dashboard /wp-admin3.36 ▲0.0155.43 ▼12.86
Posts /wp-admin/edit.php3.41 ▲0.0653.22 ▼3.73
Add New Post /wp-admin/post-new.php5.94 ▲0.0686.08 ▼28.26
Media Library /wp-admin/upload.php3.28 ▲0.0538.80 ▲1.67
Add Item /wp-admin/post-new.php?post_type=flik_timeline3.4050.13
All Items /wp-admin/edit.php?post_type=flik_timeline3.3237.35

Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/flik-timeline/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Flik Timeline
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10113.18 ▼1.081.81 ▼0.2045.88 ▲0.88
Dashboard /wp-admin2,250 ▲504.88 ▼0.9797.35 ▼7.6240.30 ▼4.27
Posts /wp-admin/edit.php2,132 ▲322.04 ▲0.0139.16 ▼0.8338.09 ▼0.80
Add New Post /wp-admin/post-new.php1,571 ▲4523.18 ▲5.53648.19 ▼50.6163.31 ▼4.75
Media Library /wp-admin/upload.php1,438 ▲414.23 ▲0.0198.83 ▼1.3744.64 ▲1.01
Add Item /wp-admin/post-new.php?post_type=flik_timeline2,2807.76175.7398.95
All Items /wp-admin/edit.php?post_type=flik_timeline1,0992.0131.3031.76

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

flik-timeline/flik-timeline-basic.php 85% from 13 tests

This is the main PHP file of "Flik Timeline" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("flik-timeline.php" instead of "flik-timeline-basic.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 258 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected533 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP58022253
CSS5416233
JavaScript481147

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/flik/img/controls.png2.74KB1.42KB▼ 48.29%
assets/images/preview-image.png22.26KB9.40KB▼ 57.76%
assets/images/custom-image.png0.68KB0.50KB▼ 26.86%
assets/images/timelayn.png9.25KB4.85KB▼ 47.58%
assets/flik/img/controls (1).png2.74KB1.42KB▼ 48.29%