84% project-target-connector

Code Review | PT Connector

WordPress plugin PT Connector scored84%from 54 tests.

About plugin

  • Plugin page: project-target-co...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: Jul 14, 2020
  • Latest release: Jul 22, 2020
  • Number of updates: 5
  • Update frequency: every 2.8 days
  • Top authors: ptdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.45ms] Passed 4 tests

A check of server-side resources used by PT Connector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0533.08 ▼3.77
Dashboard /wp-admin3.36 ▲0.0149.88 ▼9.60
Posts /wp-admin/edit.php3.41 ▲0.0548.25 ▲0.75
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.99 ▼18.05
Media Library /wp-admin/upload.php3.28 ▲0.0533.30 ▼2.36

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for PT Connector
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.63 ▼1.021.62 ▼0.1839.65 ▼1.96
Dashboard /wp-admin2,206 ▲154.83 ▼0.08110.95 ▲11.0543.05 ▲2.23
Posts /wp-admin/edit.php2,089 ▲32.05 ▼0.0935.71 ▼1.0630.34 ▼2.35
Add New Post /wp-admin/post-new.php1,542 ▲2318.22 ▼5.00631.97 ▼27.1653.01 ▼18.06
Media Library /wp-admin/upload.php1,388 ▲64.25 ▲0.0995.40 ▼1.5540.95 ▼2.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • 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 no errors were found, this is by no means 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/project-target-connector/project-target-connector.php

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is not present
You can take inspiration from this readme.txt

project-target-connector/project-target-connector.php 92% from 13 tests

The main PHP script in "PT Connector" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin242 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15858242

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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