84% plugin-mover

Code Review | Plugin Mover

WordPress plugin Plugin Mover scored84%from 54 tests.

About plugin

  • Plugin page: plugin-mover
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2014
  • Latest release: Jan 28, 2021
  • Number of updates: 10
  • Update frequency: every 228.7 days
  • Top authors: theode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,079 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.37ms] Passed 4 tests

Analyzing server-side resources used by Plugin Mover
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.80 ▼3.18
Dashboard /wp-admin3.33 ▲0.0346.32 ▲0.55
Posts /wp-admin/edit.php3.38 ▲0.0346.72 ▲2.32
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.15 ▲1.88
Media Library /wp-admin/upload.php3.26 ▲0.0332.19 ▼4.72
Plugin Mover /wp-admin/tools.php?page=pluginmove3.2229.59

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Mover
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.13 ▼1.434.84 ▲2.9140.43 ▼7.20
Dashboard /wp-admin2,207 ▲195.85 ▲0.9898.36 ▼19.0439.48 ▼5.14
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0138.58 ▲1.5934.73 ▲0.05
Add New Post /wp-admin/post-new.php1,536 ▲222.90 ▼0.21570.23 ▼117.3652.82 ▲0.46
Media Library /wp-admin/upload.php1,392 ▲14.21 ▼0.03104.85 ▲6.6444.50 ▲0.95
Plugin Mover /wp-admin/tools.php?page=pluginmove8602.0524.7426.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/plugin-mover/plugin-mover.php:51

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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: admin, plugin, management

plugin-mover/plugin-mover.php 85% from 13 tests

The main file in "Plugin Mover" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path must begin with a forward slash character ("//")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected159 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25447159

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin