84% always-use-jetpack-open-graph

Code Review | Always Use Open Graph with Jetpack

WordPress plugin Always Use Open Graph with Jetpack scored84%from 54 tests.

About plugin

  • Plugin page: always-use-jetpac...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.9
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Mar 5, 2022
  • Number of updates: 18
  • Update frequency: every 192.6 days
  • Top authors: kraftbj (83.33%)jetpackisbestpack (22.22%)

Code review

54 tests

User reviews

6 reviews

Install metrics

800+ active /16,926 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: ▼8.93ms] Passed 4 tests

A check of server-side resources used by Always Use Open Graph with Jetpack
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.66 ▲3.73
Dashboard /wp-admin3.31 ▲0.0147.66 ▼6.93
Posts /wp-admin/edit.php3.36 ▲0.0046.34 ▼7.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.55 ▼20.41
Media Library /wp-admin/upload.php3.23 ▲0.0036.33 ▼0.71

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Always Use Open Graph with Jetpack
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.071.82 ▲0.2844.44 ▲4.05
Dashboard /wp-admin2,198 ▲215.62 ▼0.0497.23 ▲8.1942.58 ▼2.66
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0237.94 ▼0.1532.73 ▼0.23
Add New Post /wp-admin/post-new.php1,526 ▼523.23 ▼0.06655.69 ▼29.4350.81 ▼2.96
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.0695.91 ▼20.4743.41 ▼2.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/always-use-jetpack-open-graph/always-use-jetpack-open-graph.php:13

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: jetpack, open graph

always-use-jetpack-open-graph/always-use-jetpack-open-graph.php 92% from 13 tests

The main PHP script in "Always Use Open Graph with Jetpack" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 315 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11102

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin