10% mysitesmanagercom-updates-checker

Code Review | MySitesManager Updates Checker

WordPress plugin MySitesManager Updates Checker scored10%from 54 tests.

About plugin

  • Plugin page: mysitesmanagercom...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2013
  • Latest release: Jun 30, 2014
  • Number of updates: 9
  • Update frequency: every 31.4 days
  • Top authors: leftofcentre (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,073 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method freshideas_WPUpdatesInfo::activate_plugin() should not be called statically

Server metrics [RAM: ▼0.88MB] [CPU: ▼37.00ms] Passed 4 tests

This is a short check of server-side resources used by MySitesManager Updates Checker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.08 ▼3.83
Dashboard /wp-admin3.06 ▼0.2431.39 ▼26.30
Posts /wp-admin/edit.php3.06 ▼0.2925.56 ▼34.22
Add New Post /wp-admin/post-new.php3.06 ▼2.8227.38 ▼74.15
Media Library /wp-admin/upload.php3.06 ▼0.1624.20 ▼13.31
MySitesManager.com Updates Checker /wp-admin/options-general.php?page=mysitesmanager-updates-checker3.0723.58

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
freshideas_wpui_settings
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
freshideas_wpui_settings_ver

Browser metrics Passed 4 tests

Checking browser requirements for MySitesManager Updates Checker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.16 ▼0.132.05 ▲0.3642.11 ▲1.97
Dashboard /wp-admin2,199 ▲255.62 ▼0.0387.55 ▼9.3743.34 ▲0.17
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0338.79 ▼2.1635.23 ▼0.46
Add New Post /wp-admin/post-new.php1,529 ▲323.09 ▼0.53643.41 ▼68.9451.63 ▲1.31
Media Library /wp-admin/upload.php1,395 ▼24.16 ▼0.0999.58 ▼22.0348.24 ▼1.95
MySitesManager.com Updates Checker /wp-admin/options-general.php?page=mysitesmanager-updates-checker8132.0024.4628.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method freshideas_WPUpdatesInfo::admin_settings_menu() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=mysitesmanager-updates-checker
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method freshideas_WPUpdatesInfo::admin_settings_menu() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=mysitesmanager-updates-checker
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method freshideas_WPUpdatesInfo::admin_settings_init() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=mysitesmanager-updates-checker
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method freshideas_WPUpdatesInfo::settings_page() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=mysitesmanager-updates-checker
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=mysitesmanager-updates-checker
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=mysitesmanager-updates-checker
    • > Deprecated in wp-admin/includes/template.php+1771
    Non-static method freshideas_WPUpdatesInfo::freshideas_wpui_settings_main_text() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=mysitesmanager-updates-checker
    • > Deprecated in wp-admin/includes/template.php+1824
    Non-static method freshideas_WPUpdatesInfo::freshideas_wpui_settings_main_field_xml_filename() should not be called statically

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === mysitesmanagercom-updates-checker === )
  • Screenshots: Add an image for screenshot #1 (Settings page)
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

mysitesmanagercom-updates-checker/mysitesmanager-updates-checker.php 69% from 13 tests

Analyzing the main PHP file in "MySitesManager Updates Checker" version 1.0.1
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("mysitesmanagercom-updates-checker.php" instead of "mysitesmanager-updates-checker.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 167 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin341 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25895341

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods520.83%
▷ Public methods1770.83%
▷ Protected methods729.17%
▷ Private methods00.00%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png25.39KB10.94KB▼ 56.92%