83% spikkl-address-lookup

Code Review | Spikkl Address Lookup

WordPress plugin Spikkl Address Lookup scored 83% from 54 tests.

About plugin

  • Plugin page: spikkl-address-lo...
  • Plugin version: 1.6.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5
  • WordPress version: 6.3.1
  • First release: May 27, 2020
  • Latest release: Apr 20, 2021
  • Number of updates: 52
  • Update frequency: every 6.5 days
  • Top authors: spikkl (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 1,179 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.41ms] Passed 4 tests

This is a short check of server-side resources used by Spikkl Address Lookup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.12 ▼3.91
Dashboard /wp-admin3.33 ▲0.0348.07 ▼2.93
Posts /wp-admin/edit.php3.44 ▲0.0952.98 ▲3.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.32 ▼14.87
Media Library /wp-admin/upload.php3.25 ▲0.0236.21 ▲0.08
Address Lookup /wp-admin/options-general.php?page=spikkl_address_lookup_options3.2632.79

Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Spikkl Address Lookup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.21 ▼0.921.78 ▼0.0746.59 ▲2.20
Dashboard /wp-admin2,226 ▲385.84 ▼0.2199.41 ▼16.4741.04 ▼4.56
Posts /wp-admin/edit.php2,114 ▲462.15 ▲0.1541.22 ▲5.5435.57 ▲3.50
Add New Post /wp-admin/post-new.php1,550 ▲3023.01 ▼0.04603.00 ▼43.8452.51 ▼0.00
Media Library /wp-admin/upload.php1,405 ▲174.26 ▲0.0695.95 ▼4.2843.96 ▼2.18
Address Lookup /wp-admin/options-general.php?page=spikkl_address_lookup_options8662.1824.5830.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/spikkl-address-lookup/includes/admin/spikkl-admin-template.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Install the Spikkl Address Lookup using the Wordpress plugin repository.), #2 (Simple settings interface to add your Spikkl API key.), #3 (Checkout page with default WooCommerce template.)
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

spikkl-address-lookup/spikkl-address-lookup.php 85% from 13 tests

The primary PHP file in "Spikkl Address Lookup" version 1.6.8 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 252 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,016 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP919291581
JavaScript21064315
PO File127467
CSS211053

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity9.14
▷ Minimum class complexity2.00
▷ Maximum class complexity39.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods43
▷ Static methods716.28%
▷ Public methods43100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected