84% my-timeline-blog

Code Review | My Timeline Blog

WordPress plugin My Timeline Blog scored84%from 54 tests.

About plugin

  • Plugin page: my-timeline-blog
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Apr 24, 2017
  • Latest release: Apr 24, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: swadeshswain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,005 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.25ms] Passed 4 tests

An overview of server-side resources used by My Timeline Blog
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.66 ▼4.41
Dashboard /wp-admin3.35 ▲0.0549.29 ▼11.96
Posts /wp-admin/edit.php3.40 ▲0.0451.97 ▲1.47
Add New Post /wp-admin/post-new.php6.03 ▲0.1485.82 ▼10.09
Media Library /wp-admin/upload.php3.27 ▲0.0441.20 ▲5.29
Add New /wp-admin/post-new.php?post_type=tmblog6.0286.09
All Blogs /wp-admin/edit.php?post_type=tmblog3.3239.33

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for My Timeline Blog
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.75 ▲0.482.18 ▲0.3542.18 ▼1.71
Dashboard /wp-admin2,225 ▲455.63 ▼0.0393.69 ▲3.3538.05 ▼2.47
Posts /wp-admin/edit.php2,127 ▲301.99 ▲0.0040.49 ▲3.0837.88 ▲4.16
Add New Post /wp-admin/post-new.php1,551 ▲2523.04 ▼0.13595.36 ▼127.7252.73 ▼3.91
Media Library /wp-admin/upload.php1,421 ▲184.22 ▼0.1799.97 ▲1.5545.27 ▼1.00
Add New /wp-admin/post-new.php?post_type=tmblog1,63117.19822.8032.03
All Blogs /wp-admin/edit.php?post_type=tmblog1,1421.9637.1833.38

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-timeline-blog/lib/mtb-posttype.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/my-timeline-blog/lib/mtb-shortcode.php:108

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots lack descriptions #3, #4 in my-timeline-blog/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
Please take inspiration from this readme.txt

my-timeline-blog/my-timeline-blog.php Passed 13 tests

The main file in "My Timeline Blog" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
138 characters long description:
My Blog Timeline is the Great WordPress Blog Timeline Plugin, through which users can create unlimited blog post with Vertical timelines.

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
No dangerous file extensions were detected326 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP5822182
JavaScript23423104
CSS3202840

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.36MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png81.70KB26.52KB▼ 67.54%
screenshot-2.png107.54KB35.15KB▼ 67.32%
screenshot-1.png92.09KB28.01KB▼ 69.58%
screenshot-3.png83.55KB24.62KB▼ 70.53%