10% remember-old-post-widget

Code Review | Remember Old Post Widget

WordPress plugin Remember Old Post Widget scored10%from 54 tests.

About plugin

  • Plugin page: remember-old-post...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 5, 2013
  • Latest release: Jul 6, 2013
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: hondamarlboro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,363 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/remember-old-post-widget/wp-remember-posts-widget.php+114
    Function create_function() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼55.65ms] Passed 4 tests

An overview of server-side resources used by Remember Old Post Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.405.52 ▼35.57
Dashboard /wp-admin2.09 ▼1.225.86 ▼44.43
Posts /wp-admin/edit.php2.09 ▼1.275.46 ▼45.17
Add New Post /wp-admin/post-new.php2.09 ▼3.806.75 ▼97.43
Media Library /wp-admin/upload.php2.09 ▼1.145.46 ▼35.01

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Remember Old Post Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.23 ▼0.102.14 ▲0.5339.35 ▼2.07
Dashboard /wp-admin2,198 ▲245.56 ▼0.0289.15 ▼3.1840.79 ▼4.22
Posts /wp-admin/edit.php2,097 ▼61.98 ▼0.0136.67 ▼4.6835.46 ▼2.73
Add New Post /wp-admin/post-new.php1,535 ▲918.35 ▼4.66649.24 ▼20.5879.87 ▲25.53
Media Library /wp-admin/upload.php1,403 ▲64.19 ▲0.01101.44 ▼10.4643.12 ▲0.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/remember-old-post-widget/wp-remember-posts-widget.php+114
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_oldpost_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/remember-old-post-widget/wp-remember-posts-widget.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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 need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === remember-old-post-widget === )
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

remember-old-post-widget/wp-remember-posts-widget.php 92% from 13 tests

"Remember Old Post Widget" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("remember-old-post-widget.php" instead of "wp-remember-posts-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin116 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP117892
PO File16624

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin