78% ang-timeline

Code Review | ANG Timeline

WordPress plugin ANG Timeline scored78%from 54 tests.

About plugin

  • Plugin page: ang-timeline
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5.3
  • WordPress version: 6.3.1
  • First release: Jun 22, 2016
  • Latest release: Jul 20, 2016
  • Number of updates: 54
  • Update frequency: every 0.6 days
  • Top authors: most_wanted (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /10,914 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼0.70ms] Passed 4 tests

Server-side resources used by ANG Timeline
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2346.62 ▲1.77
Dashboard /wp-admin3.51 ▲0.2148.38 ▼4.67
Posts /wp-admin/edit.php3.63 ▲0.2753.39 ▲1.70
Add New Post /wp-admin/post-new.php6.10 ▲0.2197.79 ▼1.59
Media Library /wp-admin/upload.php3.44 ▲0.2140.01 ▲4.09
All Timelines /wp-admin/edit.php?post_type=timeline3.4939.73
Events /wp-admin/edit-tags.php?taxonomy=event&post_type=timeline3.4336.53
Add New /wp-admin/post-new.php?post_type=timeline3.6550.28

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ANG Timeline
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲14513.99 ▼0.6516.97 ▲15.0941.54 ▲0.92
Dashboard /wp-admin2,226 ▲525.61 ▲0.0593.04 ▼1.9339.16 ▼3.93
Posts /wp-admin/edit.php2,131 ▲311.98 ▼0.0139.89 ▲4.7936.76 ▲4.45
Add New Post /wp-admin/post-new.php1,552 ▲2423.37 ▲0.37591.33 ▼80.3944.11 ▼6.04
Media Library /wp-admin/upload.php1,431 ▲284.20 ▲0.0196.74 ▼2.4945.29 ▼2.21
All Timelines /wp-admin/edit.php?post_type=timeline1,1702.0632.5332.26
Events /wp-admin/edit-tags.php?taxonomy=event&post_type=timeline1,3052.2528.0731.63
Add New /wp-admin/post-new.php?post_type=timeline2,6727.70173.2668.21

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_ang-timeline
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ang-timeline/admin/partials/ang-timeline-admin-display.php
    • > /wp-content/plugins/ang-timeline/public/partials/ang-timeline-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ang-timeline/public/widgets/timeline-wgt.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

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

The entry point to "ANG Timeline" version 1.3.5 is a PHP file that has certain tags in its header comment area
42 characters long description:
Timeline tree for WordPress posts and CPT.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,678 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PO File16567153

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity11.33
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
▷ Static methods36.82%
▷ Public methods3988.64%
▷ Protected methods00.00%
▷ Private methods511.36%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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