68% magnetis-call-tracking

Code Review | MAGNETIS Call-tracking

WordPress plugin MAGNETIS Call-tracking scored68%from 54 tests.

About plugin

  • Plugin page: magnetis-call-tra...
  • Plugin version: 6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 23, 2016
  • Latest release: Dec 5, 2022
  • Number of updates: 34
  • Update frequency: every 71.1 days
  • Top authors: alexandrejacq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,247 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼2.13MB] [CPU: ▼61.00ms] Passed 4 tests

Analyzing server-side resources used by MAGNETIS Call-tracking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.586.06 ▼46.05
Dashboard /wp-admin2.17 ▼1.467.19 ▼61.24
Posts /wp-admin/edit.php2.17 ▼1.507.30 ▼45.12
Add New Post /wp-admin/post-new.php2.17 ▼3.976.09 ▼91.60
Media Library /wp-admin/upload.php2.17 ▼1.326.05 ▼30.29
Magnétis /wp-admin/options-general.php?page=magnetis_parameters_page2.187.67

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for MAGNETIS Call-tracking
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,049 ▲30313.62 ▼1.059.43 ▲7.4628.57 ▼9.70
Dashboard /wp-admin2,350 ▲1705.76 ▲0.1185.30 ▼12.0149.26 ▲8.77
Posts /wp-admin/edit.php2,133 ▲332.09 ▲0.0736.43 ▼1.9133.03 ▼7.12
Add New Post /wp-admin/post-new.php1,556 ▲1021.12 ▼2.36655.09 ▼66.6737.72 ▼17.76
Media Library /wp-admin/upload.php1,433 ▲334.42 ▲0.21107.28 ▼6.4647.85 ▲1.07
Magnétis /wp-admin/options-general.php?page=magnetis_parameters_page9461.9231.8433.95

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-datepicker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=magnetis_parameters_page
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-datepicker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=magnetis_parameters_page
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=magnetis_parameters_page
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method magnetis_backoffice::magnetis_admin_menu() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=magnetis_parameters_page
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method magnetis_backoffice::magnetis_admin_init() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=magnetis_parameters_page
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method magnetis_backoffice::top_message() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=magnetis_parameters_page
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method magnetis_backoffice::magnetis_page() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=magnetis_parameters_page
    • > Warning in wp-content/plugins/magnetis-call-tracking/magnetis.php+115
    file_get_contents(https://app.magnetis.fr/console/connector/wordpressboard/moduleConfig/): failed to open stream: HTTP request failed! HTTP/1.1 400 Invalid authentification

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/magnetis-call-tracking/magnetis.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: appel tlphonique, numro track, call-tracking, calltracking, suivi appel...

magnetis-call-tracking/magnetis.php 85% from 13 tests

"MAGNETIS Call-tracking" version 6.2'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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("magnetis-call-tracking.php" instead of "magnetis.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 362 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin365 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1409365

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity15.67
▷ Minimum class complexity15.00
▷ Maximum class complexity16.00
Average method complexity7.29
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
No PNG files were detected