84% pr-gateway-connect

Code Review | PR-Gateway Connect

WordPress plugin PR-Gateway Connect scored84%from 54 tests.

About plugin

  • Plugin page: pr-gateway-connect
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.0.0
  • WordPress version: 6.3.1
  • First release: Apr 2, 2014
  • Latest release: Oct 25, 2019
  • Number of updates: 82
  • Update frequency: every 24.8 days
  • Top authors: PR-Gateway (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,531 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.93ms] Passed 4 tests

A check of server-side resources used by PR-Gateway Connect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.29 ▼2.00
Dashboard /wp-admin3.31 ▲0.0143.94 ▼3.69
Posts /wp-admin/edit.php3.36 ▲0.0042.08 ▼3.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.76 ▼14.12
Media Library /wp-admin/upload.php3.23 ▲0.0032.94 ▼1.51

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

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

Browser metrics Passed 4 tests

PR-Gateway Connect: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.47 ▲0.091.77 ▼0.4540.13 ▼10.09
Dashboard /wp-admin2,209 ▲215.85 ▲0.98101.67 ▼16.7340.56 ▼6.45
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0134.64 ▼7.2236.53 ▲0.08
Add New Post /wp-admin/post-new.php1,533 ▲1423.05 ▲0.18679.42 ▲7.7461.52 ▲6.86
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.0494.06 ▼6.3042.99 ▼0.54

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/pr-gateway-connect/index.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 103 tag instead of maximum 10
The official readme.txt might help

pr-gateway-connect/index.php 92% from 13 tests

Analyzing the main PHP file in "PR-Gateway Connect" version 1.0.0
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pr-gateway-connect.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1397

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin