10% tapcliq

Code Review | tapCLIQ

WordPress plugin tapCLIQ scored10%from 54 tests.

About plugin

  • Plugin page: tapcliq
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.1
  • WordPress version: 6.3.1
  • First release: May 22, 2019
  • Latest release: Jul 9, 2020
  • Number of updates: 6
  • Update frequency: every 69.0 days
  • Top authors: tapcliq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /488 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/tapcliq/tapcliq.php+215
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▲0.07MB] [CPU: ▲0.99ms] Passed 4 tests

A check of server-side resources used by tapCLIQ
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.94 ▲0.94
Dashboard /wp-admin3.36 ▲0.0648.42 ▼0.33
Posts /wp-admin/edit.php3.48 ▲0.1250.82 ▲4.55
Add New Post /wp-admin/post-new.php5.96 ▲0.0888.32 ▼1.20
Media Library /wp-admin/upload.php3.29 ▲0.0640.86 ▲7.15
Add New /wp-admin/admin.php?page=add-new-campaign3.3029.73
All Campaign /wp-admin/admin.php?page=tapcliq3.5735.26

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: 1 new table, 6 new options
New tables
wp_tapcliq_campaigns
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for tapCLIQ
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲9013.69 ▼0.692.08 ▲0.2243.08 ▼2.34
Dashboard /wp-admin2,237 ▲495.08 ▲0.19109.82 ▲4.0683.15 ▲45.88
Posts /wp-admin/edit.php2,120 ▲312.08 ▲0.0738.25 ▼1.4636.00 ▼1.64
Add New Post /wp-admin/post-new.php1,539 ▲2017.62 ▼5.52729.86 ▲111.8238.11 ▼12.05
Media Library /wp-admin/upload.php1,410 ▲224.22 ▲0.02102.44 ▲0.4273.04 ▲30.20
Add New /wp-admin/admin.php?page=add-new-campaign1,0821.8328.0261.41
All Campaign /wp-admin/admin.php?page=tapcliq1,0621.7833.9027.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 26 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=add-new-campaign
    • > Notice in wp-content/plugins/tapcliq/views/add-new-campaign.php+204
    Undefined variable: campaignId
    • > GET request to /wp-admin/admin.php?page=add-new-campaign
    • > Notice in wp-content/plugins/tapcliq/views/add-new-campaign.php+99
    Undefined variable: args
    • > GET request to /wp-admin/admin.php?page=add-new-campaign
    • > Notice in wp-content/plugins/tapcliq/views/add-new-campaign.php+107
    Object of class WP_Post could not be converted to int
    • > GET request to /wp-admin/admin.php?page=add-new-campaign
    • > Notice in wp-content/plugins/tapcliq/views/add-new-campaign.php+147
    Undefined variable: posts

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

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

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid url: ""
  • Screenshots: No descriptions were found for these screenshots #7, #8, #9 in tapcliq/assets to your readme.txt
You can look at the official readme.txt

tapcliq/tapcliq.php Passed 13 tests

"tapCLIQ" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Enable guided seller, support and engagement bots on your website

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
No dangerous file extensions were detected1,694 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP73177441,561
JavaScript3619120
CSS22613

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity55.00
▷ Minimum class complexity3.00
▷ Maximum class complexity124.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods71
▷ Static methods34.23%
▷ Public methods5070.42%
▷ Protected methods2129.58%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/tapcliq.png0.63KB0.63KB0.00%