90% modula-envira-migrator

Code Review | Migrate away from Envira Gallery

WordPress plugin Migrate away from Envira Gallery scored90%from 54 tests.

About plugin

  • Plugin page: modula-envira-mig...
  • 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: Mar 25, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 7
  • Update frequency: every 71.7 days
  • Top authors: raldea89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,019 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.06MB] [CPU: ▼10.61ms] Passed 4 tests

An overview of server-side resources used by Migrate away from Envira Gallery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0745.55 ▲1.80
Dashboard /wp-admin3.38 ▲0.0347.91 ▼21.91
Posts /wp-admin/edit.php3.49 ▲0.1346.22 ▼12.85
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.91 ▼9.47
Media Library /wp-admin/upload.php3.30 ▲0.0737.09 ▲3.16

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Migrate away from Envira Gallery
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7714.17 ▼0.211.74 ▼0.1239.91 ▼1.60
Dashboard /wp-admin2,204 ▲305.62 ▲0.1195.95 ▲8.8248.27 ▲7.09
Posts /wp-admin/edit.php2,109 ▲92.01 ▲0.0235.30 ▼5.6932.62 ▼5.44
Add New Post /wp-admin/post-new.php1,548 ▲1118.02 ▼5.51639.52 ▼45.0564.95 ▲6.99
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.11100.54 ▼3.9043.59 ▲1.06

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: gallery migrator, migrate to modula, envira gallery migrator, migrate from envira gallery

modula-envira-migrator/modula-envira-migrator.php Passed 13 tests

The main PHP script in "Migrate away from Envira Gallery" version 1.0.0 is automatically included on every request by WordPress
76 characters long description:
Submodule that helps migrate galleries from Envira Gallery to Modula Gallery

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
Good job! No executable or dangerous file extensions detected378 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3139186365
CSS12013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity45.50
▷ Minimum class complexity10.00
▷ Maximum class complexity81.00
Average method complexity5.45
▷ Minimum method complexity1.00
▷ Maximum method complexity54.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin