80% modula-foo-migrator

Code Review | Migrate away from FooGallery

WordPress plugin Migrate away from FooGallery scored80%from 54 tests.

About plugin

  • Plugin page: modula-foo-migrator
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Nov 23, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 12
  • Update frequency: every 54.0 days
  • Top authors: raldea89 (66.67%)cristian.raiber (33.33%)Otto42 (16.67%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /3,683 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.76MB] [CPU: ▼50.41ms] Passed 4 tests

This is a short check of server-side resources used by Migrate away from FooGallery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.68 ▲1.06
Dashboard /wp-admin2.19 ▼1.1210.48 ▼36.67
Posts /wp-admin/edit.php2.19 ▼1.178.51 ▼41.41
Add New Post /wp-admin/post-new.php2.19 ▼3.706.85 ▼98.56
Media Library /wp-admin/upload.php2.19 ▼1.049.21 ▼25.01

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

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

Browser metrics Passed 4 tests

Migrate away from FooGallery: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲5314.47 ▲0.091.71 ▼1.1740.44 ▼4.62
Dashboard /wp-admin2,216 ▲254.87 ▲0.00108.92 ▲1.7846.64 ▲6.21
Posts /wp-admin/edit.php2,098 ▲122.03 ▲0.0342.18 ▲2.5139.45 ▲4.34
Add New Post /wp-admin/post-new.php1,548 ▲1418.15 ▼5.02601.53 ▼48.0251.17 ▲0.99
Media Library /wp-admin/upload.php1,401 ▲164.21 ▲0.0198.41 ▼7.0346.19 ▲1.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, array must have exactly two members
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
4 plugin tags: migrate from foo gallery, foogallery gallery migrator, gallery migrator, migrate to modula

modula-foo-migrator/migrate-away-from-foogallery.php 92% from 13 tests

This is the main PHP file of "Migrate away from FooGallery" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("modula-foo-migrator.php" instead of "migrate-away-from-foogallery.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin439 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3132189376
PO File1121450
CSS12013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity38.00
▷ Minimum class complexity10.00
▷ Maximum class complexity66.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods628.57%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin