78% worpit-admin-dashboard-plugin

Code Review | iControlWP - Multiple WordPress Management

WordPress plugin iControlWP - Multiple WordPress Management scored78%from 54 tests.

About plugin

  • Plugin page: worpit-admin-dash...
  • Plugin version: 4.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: May 28, 2012
  • Latest release: Nov 10, 2023
  • Number of updates: 435
  • Update frequency: every 9.6 days
  • Top authors: paultgoodchild (100%)

Code review

54 tests

User reviews

63 reviews

Install metrics

1,000+ active /243,606 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.45MB] [CPU: ▼3.91ms] Passed 4 tests

This is a short check of server-side resources used by iControlWP - Multiple WordPress Management
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4737.76 ▼3.93
Dashboard /wp-admin3.77 ▲0.4247.37 ▼13.50
Posts /wp-admin/edit.php3.88 ▲0.5248.48 ▲0.43
Add New Post /wp-admin/post-new.php6.35 ▲0.4691.71 ▲1.37
Media Library /wp-admin/upload.php3.69 ▲0.4636.07 ▲1.49
Dashboard /wp-admin/admin.php?page=icwp-app-plugin3.7536.65

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 273 new files
Database: no new tables, 19 new options
New WordPress options
icwp_app_dc3b09e53c6f51b16eede5bfb6fe5704
theysaidso_admin_options
icwp_app_autoupdates_options
db_upgraded
icwp_app_security_options
icwp_app_whitelabel_options
icwp_app_a2f9a4ddbb8ce6f51b0bd0ddb14b2bc4
widget_recent-posts
icwp_app_google_analytics_options
icwp_app_compatibility_options
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for iControlWP - Multiple WordPress Management
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6514.20 ▼0.022.02 ▲0.3937.64 ▼6.50
Dashboard /wp-admin2,217 ▲405.55 ▼0.1388.03 ▼14.6475.17 ▲32.63
Posts /wp-admin/edit.php2,122 ▲191.97 ▼0.0435.24 ▼1.1334.46 ▼0.99
Add New Post /wp-admin/post-new.php1,568 ▲4218.54 ▼4.46612.70 ▼26.37152.95 ▲94.85
Media Library /wp-admin/upload.php1,425 ▲254.12 ▼0.0298.21 ▼3.1567.22 ▲22.43
Dashboard /wp-admin/admin.php?page=icwp-app-plugin1,0552.0127.2171.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 19 options in the database
    • icwp_app_afd89f01a1712bd1e0e55ca443cd81c9
    • icwp_app_autoupdates_options
    • icwp_app_a2f9a4ddbb8ce6f51b0bd0ddb14b2bc4
    • icwp_app_whitelabel_options
    • icwp_app_google_analytics_options
    • icwp_app_e3221956d7d621cb990e8919415a76bb
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • fernleafsystems\wordpress\plugin\icontrolwp\controller
    • icwp_app_security_options
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 take a closer look at the following
  • 35× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/worpit-admin-dashboard-plugin/templates/php/snippets/analytics_tagman.php
    • > /wp-content/plugins/worpit-admin-dashboard-plugin/templates/php/snippets/analytics_classic.php
    • > /wp-content/plugins/worpit-admin-dashboard-plugin/templates/snippets/admin_notice_add_site.php
    • > /wp-content/plugins/worpit-admin-dashboard-plugin/src/config/feature-autoupdates.php
    • > /wp-content/plugins/worpit-admin-dashboard-plugin/templates/php/notices/flash-message.php
    • > /wp-content/plugins/worpit-admin-dashboard-plugin/src/config/feature-plugin.php
    • > /wp-content/plugins/worpit-admin-dashboard-plugin/templates/php/snippets/analytics_universal.php
    • > /wp-content/plugins/worpit-admin-dashboard-plugin/templates/php/snippets/analytics_tagman_body.php
    • > /wp-content/plugins/worpit-admin-dashboard-plugin/src/config/feature-google_analytics.php
    • > /wp-content/plugins/worpit-admin-dashboard-plugin/src/config/feature-whitelabel.php
  • 313× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: aPluginLabels in wp-content/plugins/worpit-admin-dashboard-plugin/templates/php/feature-plugin.php on line 73
    • > PHP Fatal error
      Uncaught Error: Class 'FernleafSystems\\Wordpress\\Plugin\\iControlWP\\LegacyApi\\Internal\\Base' not found in wp-content/plugins/worpit-admin-dashboard-plugin/lib/src/LegacyApi/Internal/Plugin/Base.php:7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/worpit-admin-dashboard-plugin/templates/php/notices/does-not-meet-requirements.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'ICWP_APP_Foundation' not found in wp-content/plugins/worpit-admin-dashboard-plugin/src/common/icwp-wpfunctions.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/worpit-admin-dashboard-plugin/templates/php/notices/php53-version-warning.php on line 1
    • > PHP Notice
      Undefined variable: var_prefix in wp-content/plugins/worpit-admin-dashboard-plugin/templates/php/feature-plugin.php on line 111
    • > PHP Fatal error
      Uncaught Error: Class 'ICWP_APP_Processor_Plugin_Api' not found in wp-content/plugins/worpit-admin-dashboard-plugin/src/processors/plugin_api_login.php:8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/worpit-admin-dashboard-plugin/templates/php/notices/plugin-update-available.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'ICWP_APP_Foundation' not found in wp-content/plugins/worpit-admin-dashboard-plugin/src-legacy/features/base.php:7
    • > PHP Warning
      include_once(): Failed opening 'wp-content/plugins/worpit-admin-dashboard-plugin/templates/php/feature-default' for inclusion (include_path='.:/usr/share/php') in /var/www/wordpress/wp-content/plugins/worpit-admin-dashboard-plugin/templates/php/index.php on line 8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (At-a-Glance Summary tell you all your available updates split across plugin/theme names and site names with options to update all, or update individually.), #2 (See all your sites at a glance, which sites have upgrades available and where.), #3 (See a full summary of your site information, updates, WordPress Core version, Themes and much more.), #4 (Get a view of all your plugins and how each one is distributed across each site.)
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

worpit-admin-dashboard-plugin/worpit.php 92% from 13 tests

"iControlWP - Multiple WordPress Management" version 4.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("worpit-admin-dashboard-plugin.php" instead of "worpit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin24,454 lines of code in 255 files:
LanguageFilesBlank linesComment linesLines of code
PHP2494,2998,14120,021
CSS4818344,418
HTML10010
JSON1005

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.21
▷ Minimum class complexity1.00
▷ Maximum class complexity154.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces24
Interfaces0
Traits4
Classes206
▷ Abstract classes167.77%
▷ Concrete classes19092.23%
▷ Final classes00.00%
Methods1,968
▷ Static methods1417.16%
▷ Public methods1,46974.64%
▷ Protected methods41320.99%
▷ Private methods864.37%
Functions14
▷ Named functions535.71%
▷ Anonymous functions964.29%
Constants46
▷ Global constants2247.83%
▷ Class constants2452.17%
▷ Public constants24100.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
10 PNG files occupy 0.46MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png70.24KB38.06KB▼ 45.82%
assets/images/icontrolwp_24x24.png2.34KB1.42KB▼ 39.47%
assets/images/icontrolwp_16x16.png1.59KB0.79KB▼ 49.91%
assets/images/pinvoke/tick.png0.62KB0.62KB0.00%
assets/images/pinvoke/status-amber.png3.01KB0.37KB▼ 87.62%