84% notify-old-blog

Code Review | Notify Old Blog

WordPress plugin Notify Old Blog scored84%from 54 tests.

About plugin

  • Plugin page: notify-old-blog
  • Plugin version: 1.07
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Jul 28, 2019
  • Latest release: Oct 29, 2023
  • Number of updates: 28
  • Update frequency: every 55.5 days
  • Top authors: Katsushi Kawamori (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,601 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.01MB] [CPU: ▼5.46ms] Passed 4 tests

Server-side resources used by Notify Old Blog
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.56 ▼8.38
Dashboard /wp-admin3.32 ▲0.0245.54 ▼7.66
Posts /wp-admin/edit.php3.37 ▲0.0144.50 ▲0.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.37 ▼4.73
Media Library /wp-admin/upload.php3.24 ▲0.0133.63 ▼1.07
Notify Old Blog /wp-admin/options-general.php?page=NotifyOldBlog3.2132.53

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
notify_old_blog
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Notify Old Blog
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.17 ▼0.101.93 ▲0.3038.73 ▼5.32
Dashboard /wp-admin2,199 ▲195.62 ▲0.0291.17 ▼8.1743.36 ▲0.52
Posts /wp-admin/edit.php2,101 ▼22.01 ▲0.0138.54 ▼1.5236.11 ▲3.45
Add New Post /wp-admin/post-new.php1,529 ▲123.32 ▲0.06647.58 ▼34.5061.20 ▲4.63
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.0298.18 ▼13.5742.08 ▼7.35
Notify Old Blog /wp-admin/options-general.php?page=NotifyOldBlog9281.9625.4329.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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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 | 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
  • 3× 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/notify-old-blog/lib/class-notifyoldblogadmin.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notify-old-blog/lib/class-notifyoldblogadmin.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notify-old-blog/lib/class-notifyoldblog.php:37

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: last_updated, notify, blog

notify-old-blog/notifyoldblog.php 92% from 13 tests

"Notify Old Blog" version 1.07'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: The principal plugin file should be the same as the plugin slug ("notify-old-blog.php" instead of "notifyoldblog.php")

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
There were no executable files found in this plugin276 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP462152276

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity16.00
▷ Minimum class complexity6.00
▷ Maximum class complexity26.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods969.23%
▷ Protected methods00.00%
▷ Private methods430.77%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin