90% modula-photoblocks-gallery-migrator

Code Review | Migrate away from Photoblocks Gallery

WordPress plugin Migrate away from Photoblocks Gallery scored 90% from 54 tests.

About plugin

  • Plugin page: modula-photoblock...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Apr 4, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 6
  • Update frequency: every 82.7 days
  • Top authors: raldea89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,363 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.06MB] [CPU: ▼5.31ms] Passed 4 tests

Analyzing server-side resources used by Migrate away from Photoblocks Gallery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0637.39 ▼2.75
Dashboard /wp-admin3.37 ▲0.0746.42 ▼2.22
Posts /wp-admin/edit.php3.48 ▲0.1345.56 ▼3.61
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.89 ▼12.66
Media Library /wp-admin/upload.php3.29 ▲0.0636.07 ▼0.31

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Migrate away from Photoblocks Gallery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲5314.45 ▲0.061.73 ▼0.2948.33 ▲1.09
Dashboard /wp-admin2,213 ▲285.80 ▲0.9297.87 ▼11.5738.60 ▼4.11
Posts /wp-admin/edit.php2,101 ▲332.03 ▲0.0336.64 ▲1.3832.95 ▲2.03
Add New Post /wp-admin/post-new.php1,543 ▲1023.30 ▲0.25594.29 ▼24.5954.14 ▼13.34
Media Library /wp-admin/upload.php1,398 ▲134.28 ▲0.08106.50 ▲4.8246.05 ▲2.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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 photoblocks gallery, photoblocks gallery migrator, gallery migrator, migrate to modula

modula-photoblocks-gallery-migrator/modula-photoblocks-migrator.php 92% from 13 tests

This is the main PHP file of "Migrate away from Photoblocks Gallery" version 1.0.0, 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-photoblocks-gallery-migrator.php" instead of "modula-photoblocks-migrator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected345 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3139180332
CSS12013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity32.00
▷ Minimum class complexity10.00
▷ Maximum class complexity54.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods630.00%
▷ Public methods20100.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

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