84% kevinjohn-gallagher-pure-web-brilliants-social-graph-twitter-cards-extention

Code Review | Pure Web Brilliant's Social Graph Twitter Cards Extention

WordPress plugin Pure Web Brilliant's Social Graph Twitter Cards Extention scored84%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.04ms] Passed 4 tests

An overview of server-side resources used by Pure Web Brilliant's Social Graph Twitter Cards Extention
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.24 ▼0.84
Dashboard /wp-admin3.33 ▲0.0348.52 ▲0.92
Posts /wp-admin/edit.php3.39 ▲0.0346.05 ▼2.56
Add New Post /wp-admin/post-new.php5.92 ▲0.0399.26 ▼6.68
Media Library /wp-admin/upload.php3.26 ▲0.0334.36 ▼2.06

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Pure Web Brilliant's Social Graph Twitter Cards Extention
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.36 ▲0.002.13 ▲0.4344.85 ▼1.91
Dashboard /wp-admin2,203 ▲265.59 ▼0.0889.07 ▼0.8542.18 ▲2.59
Posts /wp-admin/edit.php2,106 ▲61.99 ▼0.0136.23 ▲2.3734.82 ▼3.05
Add New Post /wp-admin/post-new.php1,601 ▲7322.28 ▼0.75595.95 ▼17.4928.88 ▼25.72
Media Library /wp-admin/upload.php1,406 ▲64.19 ▼0.01100.92 ▼9.7842.78 ▼2.70

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 detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

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 task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/kevinjohn-gallagher-pure-web-brilliants-social-graph-twitter-cards-extention/kevinjohn_gallagher___social_graph_twitter_output.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
There were not plugin tags detected

kevinjohn-gallagher-pure-web-brilliants-social-graph-twitter-cards-extention/kevinjohn_gallagher___social_graph_twitter_output.php 85% from 13 tests

This is the main PHP file of "Pure Web Brilliant's Social Graph Twitter Cards Extention" version 0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 78 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("kevinjohn-gallagher-pure-web-brilliants-social-graph-twitter-cards-extention.php" instead of "kevinjohn_gallagher___social_graph_twitter_output.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected209 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1177119209

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin