84% woo-open-graph

Code Review | Woo Open Graph

WordPress plugin Woo Open Graph scored84%from 54 tests.

About plugin

  • Plugin page: woo-open-graph
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Jan 10, 2017
  • Latest release: Jan 10, 2017
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: wbcomdesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,503 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.80ms] Passed 4 tests

An overview of server-side resources used by Woo Open Graph
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.66 ▼3.10
Dashboard /wp-admin3.31 ▲0.0046.25 ▼4.24
Posts /wp-admin/edit.php3.36 ▲0.0046.24 ▼4.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.73 ▼3.86
Media Library /wp-admin/upload.php3.23 ▲0.0035.80 ▲1.70

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Open Graph
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.78 ▲0.411.76 ▲0.1046.78 ▼1.48
Dashboard /wp-admin2,203 ▲185.83 ▲0.9596.24 ▼16.3236.46 ▼5.19
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0134.18 ▼1.1134.30 ▼1.05
Add New Post /wp-admin/post-new.php1,533 ▲1423.19 ▲0.12645.80 ▼45.2653.89 ▲1.78
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0195.44 ▲1.8643.05 ▲2.59

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woo-open-graph/admin/partials/woo-open-graph-admin-display.php
    • > /wp-content/plugins/woo-open-graph/public/partials/woo-open-graph-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (It is displaying default Plugin setting page screenshot-1.png), #2 (It is displaying simple screenshot when share products links on twitter screenshot-2.png), #3 (It is displaying simple screenshot when share products links on facebook screenshot-3.png), #4 (It is displaying simple screenshot when share products links on google Plus screenshot-4.png)
You can look at the official readme.txt

woo-open-graph/woo-open-graph.php 92% from 13 tests

The main PHP file in "Woo Open Graph" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 207 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected373 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13121589367
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.75
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions3
▷ Named functions3100.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
4 PNG files occupy 0.18MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png61.96KB34.01KB▼ 45.11%
screenshot-1.png20.11KB11.86KB▼ 41.04%
screenshot-3.png69.47KB37.59KB▼ 45.89%
screenshot-2.png34.09KB12.55KB▼ 63.18%