83% nimbata-call-tracking

Code Review | Nimbata Call Tracking

WordPress plugin Nimbata Call Tracking scored83%from 54 tests.

About plugin

  • Plugin page: nimbata-call-trac...
  • Plugin version: 1.4
  • PHP compatiblity: 5.0.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Nov 11, 2017
  • Latest release: Jun 26, 2020
  • Number of updates: 15
  • Update frequency: every 63.9 days
  • Top authors: nimbata (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,036 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.23ms] Passed 4 tests

A check of server-side resources used by Nimbata Call Tracking
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.63 ▼0.53
Dashboard /wp-admin3.32 ▼0.0248.52 ▼16.20
Posts /wp-admin/edit.php3.37 ▲0.0249.88 ▲1.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.29 ▼3.92
Media Library /wp-admin/upload.php3.25 ▲0.0232.92 ▼4.27
Nimbata /wp-admin/options-general.php?page=nimbata3.2132.12

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
nimbata_dni_id

Browser metrics Passed 4 tests

Nimbata Call Tracking: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.30 ▼1.251.76 ▲0.0739.98 ▼5.29
Dashboard /wp-admin2,207 ▲195.78 ▲0.86104.80 ▼6.8039.36 ▼0.44
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0139.26 ▼2.3735.70 ▼1.35
Add New Post /wp-admin/post-new.php1,536 ▲1723.08 ▼0.05662.17 ▲35.9752.45 ▲1.36
Media Library /wp-admin/upload.php1,392 ▲74.16 ▼0.06102.42 ▼2.8643.03 ▼2.48
Nimbata /wp-admin/options-general.php?page=nimbata7962.0525.6829.71

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/nimbata-call-tracking/nimbata.php:48

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

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

"Nimbata Call Tracking" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nimbata-call-tracking.php" instead of "nimbata.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 205 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected72 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151072

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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