83% wp-awesome-timeline

Code Review | Wp Awesome Timeline

WordPress plugin Wp Awesome Timeline scored83%from 54 tests.

About plugin

  • Plugin page: wp-awesome-timeline
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Jan 16, 2019
  • Latest release: Jan 7, 2022
  • Number of updates: 6
  • Update frequency: every 181.3 days
  • Top authors: nayon46 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /595 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
Install script ran successfully

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

A check of server-side resources used by Wp Awesome Timeline
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0333.64 ▼4.85
Dashboard /wp-admin3.33 ▲0.0343.45 ▼2.47
Posts /wp-admin/edit.php3.38 ▲0.0346.01 ▼3.35
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.77 ▼6.01
Media Library /wp-admin/upload.php3.25 ▲0.0333.35 ▼2.40
Timelines /wp-admin/edit.php?post_type=wp-timeline3.3034.35
Add New /wp-admin/post-new.php?post_type=wp-timeline3.3746.77

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Wp Awesome Timeline
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.27 ▼1.111.53 ▼0.1844.58 ▲3.47
Dashboard /wp-admin2,230 ▲395.77 ▲0.7699.70 ▼1.4239.34 ▼3.76
Posts /wp-admin/edit.php2,116 ▲242.06 ▲0.0240.02 ▼0.1936.13 ▼4.51
Add New Post /wp-admin/post-new.php1,537 ▲2317.47 ▼0.10641.82 ▼40.5555.56 ▲1.12
Media Library /wp-admin/upload.php1,418 ▲334.22 ▼0.0197.98 ▼12.9943.68 ▼2.25
Timelines /wp-admin/edit.php?post_type=wp-timeline1,0801.9333.0429.58
Add New /wp-admin/post-new.php?post_type=wp-timeline2,1637.56160.9059.68

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-awesome-timeline/awesome-timeline.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (This is the first screen shot), #2 (This is the second screen shot), #3 (This is the third screen shot), #4 (This is the fourth screen shot), #5 (This is the fifth screen shot)
  • Plugin Name: Please specify the plugin name on the first line ( === wp-awesome-timeline === )
You can take inspiration from this readme.txt

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

The main file in "Wp Awesome Timeline" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-awesome-timeline.php" instead of "awesome-timeline.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected240 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1503181
PHP113759

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected