83% wpspx-basket

Code Review | WPSPX Basket

WordPress plugin WPSPX Basket scored83%from 54 tests.

About plugin

  • Plugin page: wpspx-basket
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.4.2
  • WordPress version: 6.3.1
  • First release: Aug 11, 2020
  • Latest release: Aug 11, 2020
  • Number of updates: 5
  • Update frequency: every 1.8 days
  • Top authors: beardeddev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /512 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.17ms] Passed 4 tests

A check of server-side resources used by WPSPX Basket
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.89 ▲0.25
Dashboard /wp-admin3.32 ▼0.0343.40 ▼16.80
Posts /wp-admin/edit.php3.37 ▲0.0145.27 ▼0.67
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.39 ▼18.49
Media Library /wp-admin/upload.php3.24 ▲0.0131.54 ▼4.70

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WPSPX Basket
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲14214.41 ▼0.192.79 ▲0.9955.78 ▲13.33
Dashboard /wp-admin2,214 ▲375.77 ▲0.1088.04 ▼10.2038.90 ▼7.67
Posts /wp-admin/edit.php2,124 ▲242.30 ▲0.2734.57 ▼1.6829.00 ▼6.46
Add New Post /wp-admin/post-new.php1,542 ▲1623.24 ▲0.13646.13 ▲40.8836.34 ▼17.99
Media Library /wp-admin/upload.php1,419 ▲164.39 ▲0.21108.22 ▲8.0244.91 ▲0.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 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 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
Please fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wpspx-basket/lib/helpers/options-page.php
    • > /wp-content/plugins/wpspx-basket/settings.php
    • > /wp-content/plugins/wpspx-basket/wp-spektrix-basket.php
    • > /wp-content/plugins/wpspx-basket/lib/helpers/misc.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Contributors: Contributors not specified
The official readme.txt might help

wpspx-basket/wp-spektrix-basket.php 85% from 13 tests

"WPSPX Basket" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpspx-basket.php" instead of "wp-spektrix-basket.php")
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin483 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
Sass14414184
PHP45231169
JavaScript43461121
SVG3008
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods150.00%
▷ Public methods150.00%
▷ Protected methods00.00%
▷ Private methods150.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin