84% wpcommand

Code Review | WP Command and Control Plugin

WordPress plugin WP Command and Control Plugin scored84%from 54 tests.

About plugin

  • Plugin page: wpcommand
  • Plugin version: 2.3.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.3
  • WordPress version: 6.3.1
  • First release: May 25, 2013
  • Latest release: Aug 8, 2023
  • Number of updates: 52
  • Update frequency: every 71.7 days
  • Top authors: supersoju (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /12,348 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
Installer ran successfully

Server metrics [RAM: ▲0.74MB] [CPU: ▼4.02ms] Passed 4 tests

An overview of server-side resources used by WP Command and Control Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4436.51 ▼2.99
Dashboard /wp-admin4.16 ▲0.8152.66 ▼9.72
Posts /wp-admin/edit.php4.21 ▲0.8551.93 ▲5.93
Add New Post /wp-admin/post-new.php6.74 ▲0.8593.93 ▼7.71
Media Library /wp-admin/upload.php4.08 ▲0.8539.48 ▲4.35
API Keys /wp-admin/admin.php?page=wpcac_api_keys5.4455.98
Site Status /wp-admin/admin.php?page=wpcac_status5.2942.99

Server storage [IO: ▲1.42MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 385 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
WPCAC_plugin_version
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Command and Control Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲6014.24 ▼0.021.74 ▼0.1844.16 ▲7.94
Dashboard /wp-admin2,252 ▲725.71 ▲0.0491.76 ▼2.0480.79 ▲43.13
Posts /wp-admin/edit.php2,161 ▲611.96 ▼0.0236.23 ▼3.1334.41 ▼6.79
Add New Post /wp-admin/post-new.php1,599 ▲7322.85 ▼0.71645.29 ▼3.1151.74 ▼2.11
Media Library /wp-admin/upload.php1,451 ▲574.21 ▲0.00101.51 ▼7.1184.92 ▲40.77
API Keys /wp-admin/admin.php?page=wpcac_api_keys9342.1328.0632.69
Site Status /wp-admin/admin.php?page=wpcac_status1,90312.68266.5671.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • WPCAC_plugin_version
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 300× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPCAC_AdminPageFramework_Resource_Base' not found in wp-content/plugins/wpcommand/library/factory/admin_page/_controller/AdminPageFramework_Resource_admin_page.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPCAC_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/wpcommand/library/factory/_common/utility/debug/AdminPageFramework_Debug_Utility.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPCAC_AdminPageFramework_Format_Base' not found in wp-content/plugins/wpcommand/library/factory/admin_page/_model/format/AdminPageFramework_Format_SubMenuPage.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPCAC_AdminPageFramework_Factory_Model___Meta_Base' not found in wp-content/plugins/wpcommand/library/factory/term_meta/_model/AdminPageFramework_TermMeta_Model___TermMeta.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPCAC_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/wpcommand/library/factory/_common/_abstract/_view/AdminPageFramework_TabNavigationBar.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPCAC_AdminPageFramework_TermMeta_Controller' not found in wp-content/plugins/wpcommand/library/factory/term_meta/AdminPageFramework_TermMeta.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPCAC_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/wpcommand/library/factory/_common/_abstract/_view/AdminPageFramework_Factory_View__SettingNotice.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPCAC_AdminPageFramework_Widget_View' not found in wp-content/plugins/wpcommand/library/factory/widget/AdminPageFramework_Widget_Controller.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPCAC_AdminPageFramework_Form' not found in wp-content/plugins/wpcommand/library/factory/taxonomy_field/form/AdminPageFramework_Form_taxonomy_field.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPCAC_AdminPageFramework_Form_View___Attribute_Base' not found in wp-content/plugins/wpcommand/library/factory/_common/form/_view/attribute/AdminPageFramework_Form_View___Attribute_FieldContainer_Base.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: wpcommand, wpcontrol, multiple wordpress, remote administration

wpcommand/plugin.php 85% from 13 tests

The main PHP file in "WP Command and Control Plugin" ver. 2.3.5.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpcommand.php" instead of "plugin.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
Success! There were no dangerous files found in this plugin23,100 lines of code in 363 files:
LanguageFilesBlank linesComment linesLines of code
PHP3191,4092,97117,322
CSS162562313,082
JavaScript286457262,696

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.40
▷ Minimum class complexity1.00
▷ Maximum class complexity220.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes316
▷ Abstract classes9530.06%
▷ Concrete classes22169.94%
▷ Final classes20.90%
Methods1,736
▷ Static methods28016.13%
▷ Public methods98656.80%
▷ Protected methods24614.17%
▷ Private methods50429.03%
Functions43
▷ Named functions43100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants529.41%
▷ Class constants1270.59%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/16x16.png0.45KB0.68KB0.00%