83% mybizna-pods-migration

Code Review | Mybizna Pods Migration

WordPress plugin Mybizna Pods Migration scored83%from 54 tests.

About plugin

  • Plugin page: mybizna-pods-migr...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.9
  • WordPress version: 6.3.1
  • First release: Feb 23, 2022
  • Latest release: Feb 23, 2022
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: dedanirungu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /305 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.00MB] [CPU: ▲0.15ms] Passed 4 tests

Server-side resources used by Mybizna Pods Migration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.52 ▲4.46
Dashboard /wp-admin3.31 ▲0.0044.84 ▼3.07
Posts /wp-admin/edit.php3.36 ▲0.0043.21 ▼1.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.74 ▲4.52
Media Library /wp-admin/upload.php3.23 ▲0.0031.47 ▲0.20

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mybizna Pods Migration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.42 ▼0.871.66 ▼0.2140.01 ▼1.14
Dashboard /wp-admin2,206 ▲145.86 ▲0.9298.89 ▼6.7740.78 ▼1.82
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0137.40 ▲2.1232.21 ▼2.09
Add New Post /wp-admin/post-new.php1,533 ▼1023.13 ▲4.77624.35 ▲26.4749.58 ▼10.39
Media Library /wp-admin/upload.php1,391 ▲64.21 ▼0.0393.54 ▼7.0842.36 ▼2.77

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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 everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mybizna-pods-migration/mybizna-pods-migration.php:86

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === mybizna-pods-migration === )
The official readme.txt is a good inspiration

mybizna-pods-migration/mybizna-pods-migration.php 85% from 13 tests

The main PHP script in "Mybizna Pods Migration" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.4")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.0" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,166 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JSON3001,625
PHP2208299484
YAML10043
Markdown18014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity103.00
▷ Minimum class complexity103.00
▷ Maximum class complexity103.00
Average method complexity5.08
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods832.00%
▷ Protected methods1768.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected