10% awesome-timeline

Code Review | Awesome Wordpress Timeline Plugin

WordPress plugin Awesome Wordpress Timeline Plugin scored10%from 54 tests.

About plugin

  • Plugin page: awesome-timeline
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.6
  • WordPress version: 6.3.1
  • First release: Aug 27, 2016
  • Latest release: Nov 21, 2016
  • Number of updates: 17
  • Update frequency: every 9.9 days
  • Top authors: nitesh_singh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,251 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method PublicSide\AwesomeTimeline::showAlertForMailchimp() should not be called statically

Server metrics [RAM: ▼0.13MB] [CPU: ▼13.44ms] Passed 4 tests

Server-side resources used by Awesome Wordpress Timeline Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.24 ▼5.83
Dashboard /wp-admin3.22 ▼0.0937.63 ▼14.52
Posts /wp-admin/edit.php3.28 ▼0.0842.50 ▼11.86
Add New Post /wp-admin/post-new.php5.53 ▼0.3578.12 ▼21.55
Media Library /wp-admin/upload.php3.24 ▲0.0139.00 ▲3.26
Timeline /wp-admin/edit.php?post_type=announcement&page=timeline-settings-page3.2138.55
Add Announcement /wp-admin/post-new.php?post_type=announcement3.3352.51
All Announcements /wp-admin/edit.php?post_type=announcement3.2644.02

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Awesome Wordpress Timeline Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,029 ▲24314.16 ▼0.2411.20 ▲9.1744.85 ▲2.40
Dashboard /wp-admin2,303 ▲1005.40 ▼0.46108.42 ▼0.7343.98 ▲6.32
Posts /wp-admin/edit.php2,187 ▲872.48 ▲0.4341.30 ▲1.8731.19 ▼8.55
Add New Post /wp-admin/post-new.php1,598 ▲6723.65 ▲0.32640.50 ▼41.0735.68 ▼12.96
Media Library /wp-admin/upload.php1,482 ▲794.69 ▲0.45118.97 ▲14.0347.13 ▼5.94
Timeline /wp-admin/edit.php?post_type=announcement&page=timeline-settings-page3,2133.7077.7938.50
Add Announcement /wp-admin/post-new.php?post_type=announcement2,5337.66202.37102.27
All Announcements /wp-admin/edit.php?post_type=announcement1,1562.4337.9529.09

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: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • demo_timeline_post
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=announcement
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
    • > GET request to /wp-admin/edit.php?post_type=announcement
    • > Notice in wp-content/plugins/awesome-timeline/admin/includes/class-announcement.php+176
    Trying to get property 'post_type' of non-object

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/awesome-timeline/public/views/public.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/awesome-timeline/admin/views/test.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/awesome-timeline/public/views/awesometimeline-shortcode-view.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/awesome-timeline/admin/views/timeline_menu.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AdminSide\\Views\\esc_html() in wp-content/plugins/awesome-timeline/admin/views/admin.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: announcement plugin, facebook timeline, timeline plugin, announcement, timeline...

awesome-timeline/awesome-timeline.php 92% from 13 tests

The entry point to "Awesome Wordpress Timeline Plugin" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected11,356 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
CSS131961386,601
PHP166986791,747
JavaScript9166851,432
SVG2031,219
Sass31510308
XML147349

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity15.00
▷ Minimum class complexity2.00
▷ Maximum class complexity39.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods49
▷ Static methods1020.41%
▷ Public methods4183.67%
▷ Protected methods00.00%
▷ Private methods816.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.50MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png450.52KB105.76KB▼ 76.52%
admin/assets/css/fs-sprite.png1.07KB0.18KB▼ 82.82%
admin/assets/css/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
admin/assets/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
admin/assets/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%