84% jetpack-module-control

Code Review | Module Control for Jetpack

WordPress plugin Module Control for Jetpack scored84%from 54 tests.

About plugin

  • Plugin page: jetpack-module-co...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: May 1, 2015
  • Latest release: Jul 3, 2023
  • Number of updates: 67
  • Update frequency: every 44.6 days
  • Top authors: RavanH (73.13%)deployer (28.36%)

Code review

54 tests

User reviews

10 reviews

Install metrics

3,000+ active /38,260 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼12.30ms] Passed 4 tests

This is a short check of server-side resources used by Module Control for Jetpack
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1137.62 ▼4.59
Dashboard /wp-admin3.42 ▲0.0845.68 ▼15.38
Posts /wp-admin/edit.php3.54 ▲0.1847.96 ▼2.95
Add New Post /wp-admin/post-new.php6.00 ▲0.1286.08 ▼26.28
Media Library /wp-admin/upload.php3.35 ▲0.1237.06 ▲0.36

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Module Control for Jetpack
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.19 ▼1.101.57 ▼0.5739.20 ▼5.14
Dashboard /wp-admin2,206 ▲184.85 ▼1.0294.28 ▼5.6337.22 ▼4.01
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0434.59 ▼4.6132.47 ▼3.90
Add New Post /wp-admin/post-new.php1,533 ▲1923.22 ▲5.67677.54 ▼2.8657.67 ▲2.95
Media Library /wp-admin/upload.php1,388 ▲64.24 ▲0.0498.93 ▲2.7141.44 ▼0.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 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/jetpack-module-control/jetpack-module-control.php:866

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: jetpack, jet pack, manual control, slim jetpack, blacklist jetpack modules...

jetpack-module-control/jetpack-module-control.php 92% from 13 tests

"Module Control for Jetpack" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 183 characters long)

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
Success! There were no dangerous files found in this plugin485 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP198309472
Markdown112013

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity82.00
▷ Minimum class complexity82.00
▷ Maximum class complexity82.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods14.35%
▷ Public methods1669.57%
▷ Protected methods00.00%
▷ Private methods730.43%
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
No PNG images were found in this plugin