84% wooamoconnector

Code Review | WooAmoConnector

WordPress plugin WooAmoConnector scored 84% from 54 tests.

About plugin

  • Plugin page: wooamoconnector
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Sep 21, 2017
  • Latest release: Oct 14, 2018
  • Number of updates: 16
  • Update frequency: every 24.4 days
  • Top authors: casepress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 3,009 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.10ms] Passed 4 tests

An overview of server-side resources used by WooAmoConnector
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.97 ▼4.55
Dashboard /wp-admin3.40 ▲0.1051.30 ▼2.25
Posts /wp-admin/edit.php3.51 ▲0.1649.65 ▲2.30
Add New Post /wp-admin/post-new.php5.98 ▲0.1087.60 ▼7.31
Media Library /wp-admin/upload.php3.32 ▲0.1034.81 ▼2.30
AmoCRM /wp-admin/tools.php?page=wooamoconnector-tools3.2931.94
AmoCRM /wp-admin/options-general.php?page=wac-settings3.2933.06

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WooAmoConnector
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9814.48 ▲0.281.78 ▼0.0241.17 ▼10.02
Dashboard /wp-admin2,214 ▲235.86 ▲0.84107.46 ▼1.7640.80 ▼7.48
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0440.30 ▲4.5034.32 ▼0.14
Add New Post /wp-admin/post-new.php1,548 ▲1418.36 ▼4.75621.80 ▼57.0952.12 ▼9.89
Media Library /wp-admin/upload.php1,396 ▲114.21 ▲0.0495.13 ▼8.2840.67 ▼1.83
AmoCRM /wp-admin/tools.php?page=wooamoconnector-tools7652.0222.7025.62
AmoCRM /wp-admin/options-general.php?page=wac-settings8492.0221.7830.42

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wooamoconnector/inc/class-root-wooac.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wooamoconnector/inc/class-settings-api.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wooamoconnector/inc/class-settings-api.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: amocrm, woocommerce, integration, amo, sync...

wooamoconnector/wooamoconnector.php 92% from 13 tests

"WooAmoConnector" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 plugin438 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP413449431
Markdown1507

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity10.75
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods1659.26%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin