84% timeline-blog

Code Review | OS Timeline Blog

WordPress plugin OS Timeline Blog scored84%from 54 tests.

About plugin

  • Plugin page: timeline-blog
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7.4
  • WordPress version: 6.3.1
  • First release: Aug 4, 2015
  • Latest release: Apr 24, 2017
  • Number of updates: 17
  • Update frequency: every 37.1 days
  • Top authors: offshorent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,936 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.17MB] [CPU: ▼6.75ms] Passed 4 tests

Server-side resources used by OS Timeline Blog
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1031.79 ▼5.48
Dashboard /wp-admin3.47 ▲0.1747.65 ▲0.77
Posts /wp-admin/edit.php3.57 ▲0.2246.71 ▼2.07
Add New Post /wp-admin/post-new.php6.16 ▲0.2874.96 ▼16.35
Media Library /wp-admin/upload.php3.41 ▲0.1833.41 ▼3.09
Timeline /wp-admin/admin.php?page=timeline-blog3.3530.86
About /wp-admin/admin.php?page=about_developer3.3535.16

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

OS Timeline Blog: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲14713.14 ▼1.615.29 ▲3.5743.26 ▼1.65
Dashboard /wp-admin2,219 ▲315.87 ▼0.01109.35 ▲7.2583.94 ▲44.05
Posts /wp-admin/edit.php2,123 ▲311.99 ▼0.0137.73 ▼4.7934.78 ▼3.13
Add New Post /wp-admin/post-new.php1,552 ▲3823.04 ▲5.56710.59 ▲17.2753.67 ▲0.79
Media Library /wp-admin/upload.php1,416 ▲344.24 ▲0.0998.67 ▼11.2768.68 ▲23.42
Timeline /wp-admin/admin.php?page=timeline-blog1,2632.0625.4432.53
About /wp-admin/admin.php?page=about_developer1,0022.1930.8935.22

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/timeline-blog/templates/timeline-page-template.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/timeline-blog/templates/single-timeline-template.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Timeline blog admin interface), #2 (Timeline blog page), #3 (Timeline blog single page)
Please take inspiration from this readme.txt

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

This is the main PHP file of "OS Timeline Blog" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
Create a timeline look and feel for your blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin850 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3115218553
CSS200297

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.30
Average class complexity50.00
▷ Minimum class complexity50.00
▷ Maximum class complexity50.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods25
▷ Static methods14.00%
▷ Public methods2392.00%
▷ Protected methods00.00%
▷ Private methods28.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 1.31MB with 0.66MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/category.png0.48KB0.34KB▼ 28.63%
screenshot-1.png46.36KB18.81KB▼ 59.42%
screenshot-3.png753.51KB243.79KB▼ 67.65%
images/social.png1.61KB1.12KB▼ 30.45%
screenshot-2.png534.19KB185.21KB▼ 65.33%