100% 8digits

Code Review | 8digits

WordPress plugin 8digits scored 100% from 54 tests.

About plugin

  • Plugin page: 8digits
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9.1
  • WordPress version: 5.9.2
  • First release: Jul 10, 2014
  • Latest release: Sep 24, 2014
  • Number of updates: 23
  • Update frequency: every 3.3 days
  • Top authors: 8digits (86.96%)Otto42 (17.39%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,432 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼292.73ms] Passed 4 tests

Server-side resources used by 8digits
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0554.75 ▲3.80
Dashboard /wp-admin3.45 ▲0.0532.87 ▼0.21
Posts /wp-admin/edit.php3.69 ▲0.0538.98 ▲2.19
Add New Post /wp-admin/post-new.php6.92 ▼0.0496.87 ▼1,173.58
Media Library /wp-admin/upload.php3.34 ▲0.0524.03 ▲0.70

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by 8digits
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7315.91 ▼0.045.98 ▲0.212.86 ▲0.75
Dashboard /wp-admin2,885 ▲246.20 ▲0.14120.53 ▼18.68159.05 ▼2.41
Posts /wp-admin/edit.php2,688 ▼33.23 ▼0.0164.75 ▼0.49145.13 ▼0.42
Add New Post /wp-admin/post-new.php1,661 ▼016.49 ▲0.35397.75 ▼16.08157.82 ▲1.89
Media Library /wp-admin/upload.php1,698 ▼05.51 ▼0.00137.69 ▼3.31185.64 ▼0.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: marketing, e-commerce, 8digits, conversion optimization, upsell...

8digits/8digits.php Passed 13 tests

"8digits" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
Plugin for 8digits.com to integrate your woocommerce store with 8digits easily!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected348 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
▷ Static methods15.26%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin