83% jetpack-extras

Code Review | Custom Tweaks for Jetpack by BarryCarlyon

WordPress plugin Custom Tweaks for Jetpack by BarryCarlyon scored83%from 54 tests.

About plugin

  • Plugin page: jetpack-extras
  • Plugin version: 3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Jul 24, 2012
  • Latest release: Jun 30, 2015
  • Number of updates: 84
  • Update frequency: every 12.8 days
  • Top authors: BarryCarlyon (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /11,828 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.00MB] [CPU: ▼6.25ms] Passed 4 tests

Server-side resources used by Custom Tweaks for Jetpack by BarryCarlyon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.94 ▼11.50
Dashboard /wp-admin3.31 ▲0.0145.37 ▼12.80
Posts /wp-admin/edit.php3.36 ▲0.0047.82 ▲1.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.18 ▼2.37
Media Library /wp-admin/upload.php3.23 ▲0.0041.54 ▲4.91

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Tweaks for Jetpack by BarryCarlyon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.37 ▲0.091.90 ▲0.0143.58 ▼0.88
Dashboard /wp-admin2,198 ▲185.64 ▼0.0692.84 ▲0.5938.73 ▼2.17
Posts /wp-admin/edit.php2,103 ▼02.02 ▲0.0338.42 ▲2.9334.90 ▼1.83
Add New Post /wp-admin/post-new.php1,545 ▲423.24 ▲4.95656.58 ▲11.6750.11 ▼7.07
Media Library /wp-admin/upload.php1,400 ▲34.10 ▼0.08108.50 ▲3.9147.90 ▲2.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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 | 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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/jetpack-extras/jetpack_extras.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/jetpack-extras/modules/sharedaddy/sharing-extras.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === jetpack-extras === )
You can look at the official readme.txt

jetpack-extras/jetpack_extras.php 85% from 13 tests

The primary PHP file in "Custom Tweaks for Jetpack by BarryCarlyon" version 3.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("jetpack-extras.php" instead of "jetpack_extras.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected274 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP46558266
JavaScript1008

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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