84% open-in-social-debugger

Code Review | Open in Social Debugger

WordPress plugin Open in Social Debugger scored84%from 54 tests.

About plugin

  • Plugin page: open-in-social-de...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 29, 2020
  • Latest release: Sep 30, 2020
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: neurotraveleu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /374 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
Install script ran successfully

Server metrics [RAM: ▼0.04MB] [CPU: ▼10.31ms] Passed 4 tests

This is a short check of server-side resources used by Open in Social Debugger
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0631.18 ▼10.26
Dashboard /wp-admin3.32 ▲0.0143.74 ▼3.95
Posts /wp-admin/edit.php3.26 ▼0.1034.53 ▼14.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.63 ▼12.38
Media Library /wp-admin/upload.php3.24 ▲0.0133.15 ▼0.83

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Open in Social Debugger: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.77 ▲0.401.76 ▲0.2143.30 ▲3.70
Dashboard /wp-admin2,211 ▲234.84 ▼0.19108.25 ▲4.3944.52 ▲1.46
Posts /wp-admin/edit.php2,105 ▲162.04 ▼0.0140.82 ▼0.2835.47 ▲0.61
Add New Post /wp-admin/post-new.php1,531 ▼223.19 ▲0.05617.60 ▲22.3455.37 ▲3.82
Media Library /wp-admin/upload.php1,384 ▼14.29 ▲0.0794.63 ▼6.1443.29 ▼0.59

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/open-in-social-debugger/open-in-social-debugger.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
3 plugin tags: debugger, social, debug

open-in-social-debugger/open-in-social-debugger.php Passed 13 tests

"Open in Social Debugger" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
86 characters long description:
Displays a link in the top bar for opening the current page/post in a social debugger.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin34 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16823
CSS11011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin