10% throwback-posts

Code Review | Throwback Posts - Celebrate your old posts

WordPress plugin Throwback Posts - Celebrate your old posts scored10%from 54 tests.

About plugin

  • Plugin page: throwback-posts
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.3.1
  • WordPress version: 6.3.1
  • First release: Dec 9, 2019
  • Latest release: Dec 16, 2019
  • Number of updates: 4
  • Update frequency: every 2.0 days
  • Top authors: samuelsilvapt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /399 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/throwback-posts/includes/class-throwback-posts.php+81
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.53MB] [CPU: ▲0.28ms] Passed 4 tests

Server-side resources used by Throwback Posts - Celebrate your old posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5447.64 ▲2.23
Dashboard /wp-admin3.87 ▲0.5660.54 ▲8.93
Posts /wp-admin/edit.php3.91 ▲0.5662.21 ▲6.33
Add New Post /wp-admin/post-new.php6.38 ▲0.5098.35 ▼16.38
Media Library /wp-admin/upload.php3.77 ▲0.5448.70 ▲14.47
Codestar Framework /wp-admin/tools.php?page=csf-welcome3.7846.29

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Throwback Posts - Celebrate your old posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,059 ▲29815.12 ▲0.791.83 ▲0.1942.34 ▲0.51
Dashboard /wp-admin2,462 ▲2826.76 ▲1.11118.26 ▲27.8341.32 ▲0.88
Posts /wp-admin/edit.php2,386 ▲2863.48 ▲1.5157.68 ▲21.6632.08 ▼2.91
Add New Post /wp-admin/post-new.php1,635 ▲10923.63 ▲0.66699.13 ▲8.2540.51 ▼11.37
Media Library /wp-admin/upload.php1,526 ▲1294.77 ▲0.5984.49 ▼20.0041.57 ▼4.04
Codestar Framework /wp-admin/tools.php?page=csf-welcome1,4563.2547.3553.12
Design/Content Options /wp-admin/admin.php?page=throwback-posts#tab=21,8044.4687.5877.03
General /wp-admin/admin.php?page=throwback-posts#tab=11,6114.1266.4858.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • throwback-posts
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/throwback-posts/admin/partials/throwback-posts-admin-display.php
    • > /wp-content/plugins/throwback-posts/public/partials/throwback-posts-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention: The official readme.txt might help

throwback-posts/throwback-posts.php Passed 13 tests

The primary PHP file in "Throwback Posts - Celebrate your old posts" version 1.1 is used by WordPress to initiate all plugin functionality
90 characters long description:
This plugin shows automatically your throwback posts - one year ago, two years ago, etc...

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected21,514 lines of code in 97 files:
LanguageFilesBlank linesComment linesLines of code
PHP762,0651,4438,405
JSON2004,712
JavaScript61,2023403,818
CSS52694343,783
Markdown2930420
PO File16371143
SVG402120
Sass131113

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity17.48
▷ Minimum class complexity1.00
▷ Maximum class complexity121.00
Average method complexity5.61
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes54
▷ Abstract classes23.70%
▷ Concrete classes5296.30%
▷ Final classes00.00%
Methods193
▷ Static methods2814.51%
▷ Public methods18796.89%
▷ Protected methods10.52%
▷ Private methods52.59%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/vendor/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%