84% migration-notice

Code Review | Migration Notice

WordPress plugin Migration Notice scored84%from 54 tests.

About plugin

  • Plugin page: migration-notice
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Nov 12, 2012
  • Latest release: Aug 19, 2020
  • Number of updates: 8
  • Update frequency: every 355.2 days
  • Top authors: billerickson (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,818 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.55ms] Passed 4 tests

Analyzing server-side resources used by Migration Notice
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0346.03 ▼1.59
Dashboard /wp-admin3.34 ▲0.0352.98 ▼1.15
Posts /wp-admin/edit.php3.39 ▲0.0352.37 ▲2.42
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.54 ▼1.87
Media Library /wp-admin/upload.php3.26 ▲0.0338.44 ▲3.08
Migration Notice /wp-admin/options-general.php?page=migration_notice3.2938.15

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Migration Notice
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8214.33 ▼0.032.12 ▲0.2942.41 ▼1.80
Dashboard /wp-admin2,206 ▲345.62 ▲0.0090.88 ▼19.5939.93 ▲0.24
Posts /wp-admin/edit.php2,108 ▲82.02 ▲0.0136.50 ▲1.3536.36 ▼3.28
Add New Post /wp-admin/post-new.php1,535 ▲523.19 ▼0.41662.33 ▲3.3259.39 ▲1.93
Media Library /wp-admin/upload.php1,405 ▲54.20 ▲0.04102.13 ▼7.0143.13 ▼2.45
Migration Notice /wp-admin/options-general.php?page=migration_notice1,8268.26170.6660.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/migration-notice/plugin.php:20

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 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
2 plugin tags: notice, migration

migration-notice/plugin.php 92% from 13 tests

The primary PHP file in "Migration Notice" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("migration-notice.php" instead of "plugin.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 plugin88 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1245483
Markdown1103
CSS1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin