93% campaigns-integrator

Code Review | Campaigns Integrator

WordPress plugin Campaigns Integrator scored 93% from 54 tests.

About plugin

  • Plugin page: campaigns-integrator
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-4.3.3
  • WordPress version: 5.8.1
  • First release: Apr 29, 2016
  • Latest release: Apr 29, 2016
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: wp_candyman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 475 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼138.63ms] Passed 4 tests

A check of server-side resources used by Campaigns Integrator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1942.38 ▲21.61
Dashboard /wp-admin3.13 ▲0.0848.99 ▲5.32
Posts /wp-admin/edit.php3.22 ▲0.1145.19 ▲9.00
Add New Post /wp-admin/post-new.php5.50 ▲0.0796.77 ▼565.27
Media Library /wp-admin/upload.php3.08 ▲0.0736.06 ▼3.55
Zoho Campaigns Integrator /wp-admin/admin.php?page=zoho-campaigns-integrator-main-menu3.0227.07
reCAPTCHA /wp-admin/admin.php?page=recaptcha-settings3.0229.14

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Campaigns Integrator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,869 ▲27316.82 ▲1.2116.49 ▲6.5345.16 ▼2.03
Dashboard /wp-admin3,007 ▲765.97 ▼0.16136.44 ▼21.60113.83 ▲6.55
Posts /wp-admin/edit.php2,773 ▲342.71 ▼0.0164.49 ▼1.2091.71 ▼0.70
Add New Post /wp-admin/post-new.php1,705 ▲20518.73 ▲0.25409.51 ▲30.29108.66 ▲3.19
Media Library /wp-admin/upload.php1,841 ▲345.07 ▲0.03178.29 ▲32.63113.38 ▼7.84
Zoho Campaigns Integrator /wp-admin/admin.php?page=zoho-campaigns-integrator-main-menu1,0652.1058.4180.64
reCAPTCHA /wp-admin/admin.php?page=recaptcha-settings1,0732.1555.6879.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=recaptcha-settings
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=recaptcha-settings
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=recaptcha-settings
    • > Notice in wp-content/plugins/campaigns-integrator/zoho-campaigns-integrator.php+153
    Trying to access array offset on value of type bool

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
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can look at the official readme.txt

campaigns-integrator/zoho-campaigns-integrator.php 85% from 13 tests

The entry point to "Campaigns Integrator" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("campaigns-integrator.php" instead of "zoho-campaigns-integrator.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 508 characters long)

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 plugin424 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2133114379
JavaScript2142439
CSS1016

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 were not PNG files found in your plugin