84% inperium-sell

Code Review | Inperium Sell

WordPress plugin Inperium Sell scored84%from 54 tests.

About plugin

  • Plugin page: inperium-sell
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Sep 1, 2021
  • Latest release: Sep 1, 2021
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: inperium (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /289 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.14MB] [CPU: ▼0.78ms] Passed 4 tests

This is a short check of server-side resources used by Inperium Sell
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1436.58 ▲2.07
Dashboard /wp-admin3.44 ▲0.1351.46 ▲9.28
Posts /wp-admin/edit.php3.55 ▲0.1946.23 ▲0.32
Add New Post /wp-admin/post-new.php6.04 ▲0.1583.22 ▼10.11
Media Library /wp-admin/upload.php3.36 ▲0.1337.77 ▲4.60

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 27 new files
Database: 1 new table, 7 new options
New tables
wp_inperium_forms
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
inperium_db_version
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Inperium Sell
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲16113.92 ▼0.459.95 ▲8.3843.21 ▼1.56
Dashboard /wp-admin2,227 ▲475.70 ▲0.0488.01 ▼2.3562.81 ▲18.35
Posts /wp-admin/edit.php2,139 ▲362.18 ▲0.1934.25 ▼7.1135.14 ▲3.89
Add New Post /wp-admin/post-new.php1,710 ▲18422.35 ▼1.19680.06 ▲75.4696.06 ▲35.23
Media Library /wp-admin/upload.php1,435 ▲354.24 ▲0.07107.30 ▲6.4474.55 ▲27.15

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/inperium-sell/admin/partials/inperium-admin-form-editor.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/inperium-sell/admin/partials/inperium-admin-display.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: crm, formbuilder, e-commerce, commerce, inperium

inperium-sell/inperium-sell.php 85% from 13 tests

The principal PHP file in "Inperium Sell" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin2,280 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS354481,289
PHP14302757931
JavaScript34355
SVG1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods49
▷ Static methods24.08%
▷ Public methods4183.67%
▷ Protected methods24.08%
▷ Private methods612.24%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin