84% kevinjohn-gallagher-pure-web-brilliants-social-graph-open-graph-extras

Code Review | Pure Web Brilliant's Social Graph: Open Graph extras Extention

WordPress plugin Pure Web Brilliant's Social Graph: Open Graph extras Extention scored84%from 54 tests.

About plugin

  • Plugin page: kevinjohn-gallagh...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: Jun 23, 2012
  • Latest release: Jul 8, 2012
  • Number of updates: 3
  • Update frequency: every 5.3 days
  • Top authors: kevinjohngallagher (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,013 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.03MB] [CPU: ▼5.43ms] Passed 4 tests

Server-side resources used by Pure Web Brilliant's Social Graph: Open Graph extras Extention
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.58 ▼1.14
Dashboard /wp-admin3.34 ▲0.0347.66 ▼4.12
Posts /wp-admin/edit.php3.39 ▲0.0348.01 ▲1.16
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.99 ▼12.17
Media Library /wp-admin/upload.php3.26 ▲0.0334.80 ▼4.27

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Pure Web Brilliant's Social Graph: Open Graph extras Extention
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.37 ▼1.211.57 ▼0.3538.85 ▼11.79
Dashboard /wp-admin2,211 ▲265.90 ▲0.02107.99 ▼2.9639.38 ▼3.72
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0141.30 ▲2.9736.30 ▲3.66
Add New Post /wp-admin/post-new.php1,590 ▲7622.36 ▲4.58686.27 ▲24.6451.65 ▼9.58
Media Library /wp-admin/upload.php1,388 ▲34.25 ▼0.04102.16 ▲0.6344.11 ▼1.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/kevinjohn-gallagher-pure-web-brilliants-social-graph-open-graph-extras/kevinjohn_gallagher___social_graph_open_graph_extra.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
No tags were detected

kevinjohn-gallagher-pure-web-brilliants-social-graph-open-graph-extras/kevinjohn_gallagher___social_graph_open_graph_extra.php 85% from 13 tests

The principal PHP file in "Pure Web Brilliant's Social Graph: Open Graph extras Extention" v. 0.6 is loaded by WordPress automatically on each request
The following require your attention:
  • Plugin Name: Please shorten the plugin name (currently 83 characters long instead of max. 70)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kevinjohn-gallagher-pure-web-brilliants-social-graph-open-graph-extras.php" instead of "kevinjohn_gallagher___social_graph_open_graph_extra.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin202 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112579202

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin