90% salespanel

Code Review | Salespanel

WordPress plugin Salespanel scored90%from 54 tests.

About plugin

  • Plugin page: salespanel
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.2
  • WordPress version: 6.3.1
  • First release: Nov 24, 2020
  • Latest release: Apr 6, 2023
  • Number of updates: 6
  • Update frequency: every 144.0 days
  • Top authors: amansalespanel (66.67%)akshaysalespanel (50%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /894 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
Install script ran successfully

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

This is a short check of server-side resources used by Salespanel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0347.59 ▲5.78
Dashboard /wp-admin3.34 ▼0.0049.69 ▼13.65
Posts /wp-admin/edit.php3.39 ▲0.0448.82 ▼4.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0490.92 ▼28.31
Media Library /wp-admin/upload.php3.27 ▲0.0437.08 ▼3.04
Salespanel /wp-admin/options-general.php?page=salespanel-settings3.2332.34

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
sp_settings
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Salespanel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.59 ▼0.681.83 ▲0.0242.18 ▼4.15
Dashboard /wp-admin2,225 ▲184.89 ▼0.07102.54 ▼8.8637.15 ▼23.86
Posts /wp-admin/edit.php2,104 ▲72.00 ▼0.0434.85 ▼3.7138.41 ▼0.61
Add New Post /wp-admin/post-new.php1,548 ▲2223.23 ▼0.55621.66 ▼86.1082.63 ▲21.37
Media Library /wp-admin/upload.php1,398 ▼24.24 ▼0.04102.42 ▼13.2446.25 ▼2.29
Salespanel /wp-admin/options-general.php?page=salespanel-settings8602.1722.7534.55

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • sp_settings
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
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
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: lead generation, analytics

salespanel/salespanel.php Passed 13 tests

The main PHP file in "Salespanel" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
39 characters long description:
Identify, track and qualify your leads.

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 detected158 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13518158

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected