83% google-plus-name-link-popup-badge

Code Review | Plugin Name: Google+ (Plus) Name Link PopUp Badge

WordPress plugin Plugin Name: Google+ (Plus) Name Link PopUp Badgescored83%from 54 tests.

About plugin

  • Plugin page: google-plus-name-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Oct 1, 2013
  • Latest release: Oct 1, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: morettolss (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /915 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
Installer ran successfully

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

An overview of server-side resources used by Plugin Name: Google+ (Plus) Name Link PopUp Badge
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.05 ▼2.51
Dashboard /wp-admin3.31 ▲0.0045.57 ▼6.33
Posts /wp-admin/edit.php3.36 ▲0.0050.17 ▲2.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.92 ▼9.82
Media Library /wp-admin/upload.php3.23 ▲0.0034.67 ▲2.04

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Name: Google+ (Plus) Name Link PopUp Badge
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9214.39 ▼0.4227.05 ▲25.0544.93 ▼0.62
Dashboard /wp-admin2,209 ▲214.84 ▼1.05111.42 ▼4.5039.80 ▼6.95
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0138.52 ▲2.4535.85 ▼1.43
Add New Post /wp-admin/post-new.php1,533 ▼918.29 ▲0.11633.66 ▲30.8575.85 ▲25.42
Media Library /wp-admin/upload.php1,388 ▲34.20 ▲0.0992.86 ▼11.4239.65 ▼7.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/google-plus-name-link-popup-badge/gplusnamelink.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
  • Plugin Name: Please specify the plugin name on the first line ( === Plugin Name: Google+ (Plus) Name Link PopUp Badge=== )
You can take inspiration from this readme.txt

google-plus-name-link-popup-badge/gplusnamelink.php 92% from 13 tests

The main PHP file in "Plugin Name: Google+ (Plus) Name Link PopUp Badge" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("google-plus-name-link-popup-badge.php" instead of "gplusnamelink.php")

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
Everything looks great! No dangerous files found in this plugin14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19814

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin