90% 8digits

Code Review | 8digits

WordPress plugin 8digits scored90%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: 6.3.1
  • 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,608 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.03ms] Passed 4 tests

This is a short check of server-side resources used by 8digits
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.81 ▼0.34
Dashboard /wp-admin3.35 ▲0.0545.74 ▼1.67
Posts /wp-admin/edit.php3.47 ▲0.1145.72 ▼4.56
Add New Post /wp-admin/post-new.php5.94 ▲0.0490.79 ▼9.54
Media Library /wp-admin/upload.php3.28 ▲0.0435.22 ▲1.13

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for 8digits
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.60 ▼0.754.12 ▲2.3442.99 ▲1.97
Dashboard /wp-admin2,206 ▲184.85 ▼0.04104.42 ▼3.0440.01 ▼2.28
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0434.81 ▼6.5034.64 ▼0.81
Add New Post /wp-admin/post-new.php1,547 ▲3018.26 ▲0.63608.43 ▼38.7463.35 ▲14.46
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.1294.70 ▼1.7342.10 ▼2.11

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output 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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: conversion optimization, e-commerce, marketing, notificationbar, woocommerce...

8digits/8digits.php Passed 13 tests

This is the main PHP file of "8digits" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin348 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101106348

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for 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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods19
▷ Static methods15.26%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin