90% wirewheel-connector

Code Review | Wirewheel Connector

WordPress plugin Wirewheel Connector scored90%from 54 tests.

About plugin

  • Plugin page: wirewheel-connector
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0
  • WordPress version: 6.3.1
  • First release: Jul 1, 2022
  • Latest release: Sep 12, 2022
  • Number of updates: 8
  • Update frequency: every 9.3 days
  • Top authors: wirewheelmktg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /198 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▲0.84ms] Passed 4 tests

This is a short check of server-side resources used by Wirewheel Connector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1243.91 ▼2.64
Dashboard /wp-admin3.43 ▲0.1351.27 ▲4.73
Posts /wp-admin/edit.php3.48 ▲0.1354.65 ▲0.23
Add New Post /wp-admin/post-new.php6.01 ▲0.1398.65 ▲3.74
Media Library /wp-admin/upload.php3.36 ▲0.1338.95 ▲2.05
Settings /wp-admin/admin.php?page=wwc_forms-settings3.3231.01
Wirewheel Forms /wp-admin/admin.php?page=wwc_forms3.3235.03

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

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

Browser metrics Passed 4 tests

Wirewheel Connector: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.21 ▼1.591.69 ▼0.4340.16 ▼4.11
Dashboard /wp-admin2,236 ▲485.90 ▼0.00103.35 ▲4.1340.33 ▼4.64
Posts /wp-admin/edit.php2,116 ▲272.04 ▲0.0340.27 ▼1.2835.88 ▼2.91
Add New Post /wp-admin/post-new.php1,555 ▲1323.13 ▲4.83664.22 ▲6.1954.26 ▲1.47
Media Library /wp-admin/upload.php1,409 ▲214.16 ▼0.0497.11 ▼7.9242.63 ▼0.54
Settings /wp-admin/admin.php?page=wwc_forms-settings9292.0222.1326.35
Wirewheel Forms /wp-admin/admin.php?page=wwc_forms8022.0223.8225.77

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: wirewheel, privacy, form

wirewheel-connector/wirewheel-connector.php Passed 13 tests

"Wirewheel Connector" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
Wirewheel connector to render the Wirewheel forms easily.

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 detected1,409 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3911321,080
CSS266216
JavaScript1816113

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity83.00
▷ Minimum class complexity83.00
▷ Maximum class complexity83.00
Average method complexity8.45
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods981.82%
▷ Protected methods218.18%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin