90% campwire

Code Review | Campwire

WordPress plugin Campwire scored90%from 54 tests.

About plugin

  • Plugin page: campwire
  • Plugin version: 0.0.2
  • PHP compatiblity: 5.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 19, 2020
  • Latest release: Sep 25, 2021
  • Number of updates: 5
  • Update frequency: every 71.6 days
  • Top authors: iarovuo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /424 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.04MB] [CPU: ▼2.37ms] Passed 4 tests

An overview of server-side resources used by Campwire
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.50 ▼0.01
Dashboard /wp-admin3.36 ▲0.0559.96 ▲8.36
Posts /wp-admin/edit.php3.41 ▲0.0557.05 ▲5.54
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.90 ▼17.38
Media Library /wp-admin/upload.php3.28 ▲0.0537.15 ▲2.37
Campwire /wp-admin/options-general.php?page=gritonl_cwac3.2436.63

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 14 new options
New WordPress options
can_compress_scripts
db_upgraded
gritonl_cwac_actags
theysaidso_admin_options
gritonl_cwac_accodeon
gritonl_cwac_acgood
widget_theysaidso_widget
gritonl_cwac_aclist
gritonl_cwac_aclists
widget_recent-comments
...

Browser metrics Passed 4 tests

Campwire: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.38 ▲0.221.65 ▼0.1142.15 ▼1.38
Dashboard /wp-admin2,202 ▲285.62 ▲0.0989.17 ▼3.0441.61 ▼7.97
Posts /wp-admin/edit.php2,107 ▲71.99 ▼0.1042.66 ▲4.6134.42 ▼2.89
Add New Post /wp-admin/post-new.php1,529 ▼222.94 ▼0.07661.23 ▲21.6662.69 ▼2.17
Media Library /wp-admin/upload.php1,401 ▲14.23 ▲0.01102.33 ▼3.5444.92 ▼1.13
Campwire /wp-admin/options-general.php?page=gritonl_cwac8672.1223.1757.66

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: activecampaign, campwire, integration

campwire/cwacintegration.php 92% from 13 tests

The main PHP file in "Campwire" ver. 0.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("campwire.php" instead of "cwacintegration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected237 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33670237

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin