84% manual-control

Code Review | Manual Control for Jetpack

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

About plugin

  • Plugin page: manual-control
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.7
  • WordPress version: 6.3.1
  • First release: Jan 12, 2012
  • Latest release: Oct 22, 2013
  • Number of updates: 11
  • Update frequency: every 79.0 days
  • Top authors: markjaquith (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

700+ active /18,767 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.58ms] Passed 4 tests

An overview of server-side resources used by Manual Control for Jetpack
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.28 ▲1.73
Dashboard /wp-admin3.31 ▲0.0151.28 ▼1.68
Posts /wp-admin/edit.php3.36 ▲0.0148.49 ▼2.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.63 ▼8.33
Media Library /wp-admin/upload.php3.24 ▲0.0139.42 ▲4.59

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Manual Control for Jetpack
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▲0.031.87 ▲0.2547.25 ▲3.76
Dashboard /wp-admin2,198 ▲185.63 ▼0.0392.32 ▲0.0639.85 ▼1.26
Posts /wp-admin/edit.php2,103 ▼02.04 ▲0.0439.32 ▲1.4036.42 ▼1.94
Add New Post /wp-admin/post-new.php1,528 ▲223.02 ▼0.52671.65 ▼27.2852.20 ▼3.13
Media Library /wp-admin/upload.php1,397 ▼64.22 ▼0.04109.25 ▲5.2346.31 ▼0.44

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/manual-control/manual-control.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: control, jetpack

manual-control/manual-control.php Passed 13 tests

The main PHP file in "Manual Control for Jetpack" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
Prevents the Jetpack plugin from auto-activating its new features.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15715

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ 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

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