84% pressable-automated-migration

Code Review | Pressable Automated Migration

WordPress plugin Pressable Automated Migration scored84%from 54 tests.

About plugin

  • Plugin page: pressable-automat...
  • Plugin version: 5.25
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 7, 2019
  • Latest release: Sep 11, 2023
  • Number of updates: 44
  • Update frequency: every 38.9 days
  • Top authors: ritesh.soni36 (86.36%)akshatc (13.64%)rrv4813 (4.55%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /26,313 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼5.45ms] Passed 4 tests

A check of server-side resources used by Pressable Automated Migration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2039.16 ▲3.62
Dashboard /wp-admin3.53 ▲0.1849.17 ▼11.51
Posts /wp-admin/edit.php3.58 ▲0.2251.31 ▲4.53
Add New Post /wp-admin/post-new.php6.05 ▲0.1686.83 ▼18.44
Media Library /wp-admin/upload.php3.39 ▲0.1641.64 ▲7.17

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Pressable Automated Migration: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.23 ▼0.122.04 ▲0.3239.81 ▲0.95
Dashboard /wp-admin2,207 ▲275.51 ▼0.0987.38 ▼2.6767.60 ▲21.22
Posts /wp-admin/edit.php2,118 ▲182.00 ▲0.0136.43 ▼1.3132.19 ▼4.91
Add New Post /wp-admin/post-new.php1,692 ▲16122.25 ▼0.90703.13 ▲57.5153.07 ▼1.41
Media Library /wp-admin/upload.php1,409 ▲94.22 ▼0.05100.35 ▼4.6273.25 ▲32.26

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pressable-automated-migration/admin/main_page.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

pressable-automated-migration/pressable.php 92% from 13 tests

The entry point to "Pressable Automated Migration" version 5.25 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pressable-automated-migration.php" instead of "pressable.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
Success! There were no dangerous files found in this plugin3,776 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP23455483,361
CSS3143235415

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity25.87
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods238
▷ Static methods3213.45%
▷ Public methods23799.58%
▷ Protected methods00.00%
▷ Private methods10.42%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants112.50%
▷ Class constants787.50%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/pressable-logo.png36.42KB18.53KB▼ 49.12%
assets/img/blogvault-logo-120.png4.06KB3.29KB▼ 19.01%
assets/img/blogvault-logo.png21.51KB8.83KB▼ 58.92%