90% change-og-url-to-http

Code Review | Change OG URL To HTTP

WordPress plugin Change OG URL To HTTP scored90%from 54 tests.

About plugin

  • Plugin page: change-og-url-to-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 25, 2017
  • Latest release: Jul 17, 2018
  • Number of updates: 10
  • Update frequency: every 32.6 days
  • Top authors: inorbit (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,070 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.98ms] Passed 4 tests

An overview of server-side resources used by Change OG URL To HTTP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.04 ▼0.72
Dashboard /wp-admin3.33 ▲0.0347.04 ▼1.07
Posts /wp-admin/edit.php3.38 ▲0.0244.62 ▼0.53
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.75 ▼5.58
Media Library /wp-admin/upload.php3.25 ▲0.0236.26 ▲3.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
oghttp_get_lastpost_time

Browser metrics Passed 4 tests

A check of browser resources used by Change OG URL To HTTP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.57 ▲0.181.77 ▲0.1844.65 ▲2.09
Dashboard /wp-admin2,192 ▲155.62 ▼0.0497.40 ▲9.0241.92 ▲2.01
Posts /wp-admin/edit.php2,103 ▲31.99 ▲0.0534.99 ▼2.5732.21 ▼4.19
Add New Post /wp-admin/post-new.php1,526 ▼923.22 ▲5.15663.34 ▲53.6063.14 ▼14.01
Media Library /wp-admin/upload.php1,400 ▼34.14 ▼0.24110.93 ▲16.1646.73 ▲1.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: og url, retain facebook likes, og url aioseo, http, og url yoast

change-og-url-to-http/change-og-url-to-http.php Passed 13 tests

The primary PHP file in "Change OG URL To HTTP" version 1.0 is used by WordPress to initiate all plugin functionality
115 characters long description:
Changes the OG:URL tag added by SEO Plugins from HTTPS to HTTP so you can get back your facebook likes/share count.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected97 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3572597

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods8100.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin