84% simple-myisam-to-innodb

Code Review | Simple MyISAM to InnoDB

WordPress plugin Simple MyISAM to InnoDB scored84%from 54 tests.

About plugin

  • Plugin page: simple-myisam-to-...
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 11, 2020
  • Latest release: Sep 28, 2023
  • Number of updates: 25
  • Update frequency: every 47.0 days
  • Top authors: phpsquare (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

1,000+ active /11,775 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.19ms] Passed 4 tests

This is a short check of server-side resources used by Simple MyISAM to InnoDB
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0145.63 ▲4.24
Dashboard /wp-admin3.32 ▼0.0248.28 ▼19.65
Posts /wp-admin/edit.php3.37 ▲0.0251.77 ▲6.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.45 ▼7.33
Media Library /wp-admin/upload.php3.25 ▲0.0234.94 ▼2.01

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Simple MyISAM to InnoDB
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.34 ▼0.261.77 ▲0.0746.24 ▲2.17
Dashboard /wp-admin2,216 ▲395.64 ▲0.0485.55 ▼16.2438.82 ▼4.21
Posts /wp-admin/edit.php2,118 ▲182.04 ▲0.0436.52 ▲0.7432.60 ▼3.64
Add New Post /wp-admin/post-new.php1,549 ▲2318.43 ▼4.70622.94 ▼61.1278.92 ▲23.01
Media Library /wp-admin/upload.php1,418 ▲184.22 ▲0.0097.62 ▼8.8045.95 ▼2.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-myisam-to-innodb/simple-myisam-to-innodb.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: database engine type upgrade, database type update, myisam to innodb

simple-myisam-to-innodb/simple-myisam-to-innodb.php 92% from 13 tests

"Simple MyISAM to InnoDB" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin79 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1192567
CSS10012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin