84% wp-x2crm

Code Review | WP-x2CRM

WordPress plugin WP-x2CRM scored84%from 54 tests.

About plugin

  • Plugin page: wp-x2crm
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 22, 2017
  • Latest release: Apr 3, 2017
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: zoan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /779 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.03MB] [CPU: ▼5.94ms] Passed 4 tests

This is a short check of server-side resources used by WP-x2CRM
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.32 ▼4.84
Dashboard /wp-admin3.33 ▲0.0343.06 ▼2.81
Posts /wp-admin/edit.php3.38 ▲0.0342.17 ▼7.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.23 ▼8.59
Media Library /wp-admin/upload.php3.25 ▲0.0335.19 ▲2.54
x2CRM Options /wp-admin/options-general.php?page=wp2x2crm_options3.1926.90

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
wp-x2crm_version
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP-x2CRM
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.45 ▲0.081.75 ▲0.0440.03 ▼2.01
Dashboard /wp-admin2,210 ▲215.91 ▲0.90111.20 ▼14.7742.29 ▼10.26
Posts /wp-admin/edit.php2,093 ▲11.97 ▼0.0339.23 ▼4.7631.97 ▼2.82
Add New Post /wp-admin/post-new.php1,550 ▲2118.11 ▼0.27631.07 ▼14.6870.08 ▲16.93
Media Library /wp-admin/upload.php1,392 ▲74.21 ▼0.0499.46 ▼38.6041.69 ▼9.06
x2CRM Options /wp-admin/options-general.php?page=wp2x2crm_options8082.0726.2827.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • wp-x2crm_version
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp2x2crm_options
    • > Notice in wp-content/plugins/wp-x2crm/inc/x2crm-options.php+34
    Trying to access array offset on value of type bool

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-x2crm === )
You can take inspiration from this readme.txt

wp-x2crm/wp-x2crm.php Passed 13 tests

"WP-x2CRM" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
78 characters long description:
Connect Wordpress with x2CRM Contact Relationship and Marketing Automation App

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 plugin367 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP778253367

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods2090.91%
▷ Protected methods00.00%
▷ Private methods29.09%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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