10% wp-multitarget-uploads-sync-tool

Code Review | WP-MultiTarget-Uploads-Sync-Tool

WordPress plugin WP-MultiTarget-Uploads-Sync-Tool scored10%from 54 tests.

About plugin

  • Plugin page: wp-multitarget-up...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Sep 25, 2012
  • Latest release: Dec 30, 2012
  • Number of updates: 15
  • Update frequency: every 6.5 days
  • Top authors: evlos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,753 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/wp-multitarget-uploads-sync-tool/index.php+11
    Non-static method MUST::ins() should not be called statically

Server metrics [RAM: ▼1.97MB] [CPU: ▼56.54ms] Passed 4 tests

Analyzing server-side resources used by WP-MultiTarget-Uploads-Sync-Tool
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.39 ▼36.89
Dashboard /wp-admin2.05 ▼1.307.36 ▼57.90
Posts /wp-admin/edit.php2.05 ▼1.316.14 ▼44.69
Add New Post /wp-admin/post-new.php2.05 ▼3.845.35 ▼86.69
Media Library /wp-admin/upload.php2.05 ▼1.185.69 ▼31.78
WP-MUST InMedia /wp-admin/admin.php?page=MUSTpageInMedia2.055.05
WP-MUST Changelog /wp-admin/admin.php?page=MUSTpageChangelog2.056.14
WP-MUST Setting /wp-admin/admin.php?page=MUSTpageSetting2.055.76
WP-MUST /wp-admin/admin.php?page=wp-multitarget-uploads-sync-tool/index.php2.055.63

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP-MultiTarget-Uploads-Sync-Tool
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8914.45 ▲0.271.87 ▲0.0440.77 ▼5.54
Dashboard /wp-admin2,244 ▲564.85 ▼1.01104.20 ▼13.8043.41 ▲0.75
Posts /wp-admin/edit.php2,124 ▲352.02 ▼0.0336.37 ▼3.6332.82 ▼2.25
Add New Post /wp-admin/post-new.php1,549 ▲1623.31 ▲0.21694.41 ▲45.6451.53 ▼2.61
Media Library /wp-admin/upload.php1,423 ▲354.19 ▲0.02102.53 ▼4.1148.65 ▲2.77
WP-MUST InMedia /wp-admin/admin.php?page=MUSTpageInMedia8451.9927.4030.83
WP-MUST Changelog /wp-admin/admin.php?page=MUSTpageChangelog8322.0524.8026.59
WP-MUST Setting /wp-admin/admin.php?page=MUSTpageSetting8422.1524.3026.84
WP-MUST /wp-admin/admin.php?page=wp-multitarget-uploads-sync-tool/index.php9152.1123.4140.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp-multitarget-uploads-sync-tool/index.php+11
    Non-static method MUST::ins() should not be called statically
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-multitarget-uploads-sync-tool/index.php
    • > Deprecated in wp-content/plugins/wp-multitarget-uploads-sync-tool/index.php+11
    Non-static method MUST::ins() should not be called statically

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 add_action() in wp-content/plugins/wp-multitarget-uploads-sync-tool/index.php:105

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: imgbed, images, attachments, upload, sync

wp-multitarget-uploads-sync-tool/index.php 92% from 13 tests

The primary PHP file in "WP-MultiTarget-Uploads-Sync-Tool" version 1.0.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-multitarget-uploads-sync-tool.php" instead of "index.php")

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 detected811 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26056808
Markdown1103

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity41.67
▷ Minimum class complexity2.00
▷ Maximum class complexity105.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods55
▷ Static methods35.45%
▷ Public methods5498.18%
▷ Protected methods00.00%
▷ Private methods11.82%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin