84% foogallery-migrate

Code Review | FooGallery Migrate

WordPress plugin FooGallery Migrate scored84%from 54 tests.

About plugin

  • Plugin page: foogallery-migrate
  • Plugin version: 1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 5, 2022
  • Latest release: Apr 8, 2023
  • Number of updates: 7
  • Update frequency: every 19.6 days
  • Top authors: bradvin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,583 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼7.45ms] Passed 4 tests

Analyzing server-side resources used by FooGallery Migrate
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1035.47 ▼4.99
Dashboard /wp-admin3.47 ▲0.1746.71 ▼1.70
Posts /wp-admin/edit.php3.58 ▲0.2348.59 ▼1.78
Add New Post /wp-admin/post-new.php6.05 ▲0.1682.47 ▼21.32
Media Library /wp-admin/upload.php3.39 ▲0.1638.56 ▲8.51

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for FooGallery Migrate
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.52 ▼0.854.88 ▲3.0439.86 ▼3.28
Dashboard /wp-admin2,211 ▲205.82 ▲0.80107.91 ▼4.5137.96 ▼4.13
Posts /wp-admin/edit.php2,099 ▲102.06 ▲0.0939.46 ▲2.7035.74 ▲2.63
Add New Post /wp-admin/post-new.php1,544 ▲1123.09 ▼0.03665.56 ▼35.8851.69 ▼3.75
Media Library /wp-admin/upload.php1,393 ▲54.21 ▼0.1098.64 ▼6.9343.58 ▼2.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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
Even though no errors were found, 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
Please fix the following items
  • 112× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/foogallery-migrate/vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FooPlugins\\FooGalleryMigrate\\Objects\\Migratable' not found in wp-content/plugins/foogallery-migrate/includes/objects/class-gallery.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/foogallery-migrate/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/foogallery-migrate/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/foogallery-migrate/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/foogallery-migrate/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'FooPlugins\\FooGalleryMigrate\\Objects\\Plugin' not found in wp-content/plugins/foogallery-migrate/includes/plugins/class-robo.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/foogallery-migrate/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/foogallery-migrate/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/foogallery-migrate/vendor/composer/installers/src/Composer/Installers/WinterInstaller.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: migrate, photo gallery, gallery, wordpress gallery plugin, image gallery

foogallery-migrate/migrate.php 92% from 13 tests

"FooGallery Migrate" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("foogallery-migrate.php" instead of "migrate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected5,682 lines of code in 134 files:
LanguageFilesBlank linesComment linesLines of code
PHP1321,1391,7595,414
JSON200268

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.90
▷ Minimum class complexity1.00
▷ Maximum class complexity93.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes115
▷ Abstract classes43.48%
▷ Concrete classes11196.52%
▷ Final classes00.00%
Methods277
▷ Static methods186.50%
▷ Public methods21477.26%
▷ Protected methods3914.08%
▷ Private methods248.66%
Functions14
▷ Named functions964.29%
▷ Anonymous functions535.71%
Constants38
▷ Global constants1950.00%
▷ Class constants1950.00%
▷ Public constants1578.95%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin