89% elfskot-product-configurator

Code Review | Elfskot Product Configurator Plugin

WordPress plugin Elfskot Product Configurator Plugin scored89%from 54 tests.

About plugin

  • Plugin page: elfskot-product-c...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jul 27, 2018
  • Latest release: Dec 24, 2020
  • Number of updates: 20
  • Update frequency: every 44.1 days
  • Top authors: johanneselfskot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,349 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.00ms] Passed 4 tests

This is a short check of server-side resources used by Elfskot Product Configurator Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.28 ▲2.69
Dashboard /wp-admin3.33 ▼0.0249.04 ▼15.00
Posts /wp-admin/edit.php3.38 ▲0.0253.42 ▲0.60
Add New Post /wp-admin/post-new.php5.91 ▲0.02103.75 ▲1.22
Media Library /wp-admin/upload.php3.25 ▲0.0236.32 ▼2.81

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Elfskot Product Configurator Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.44 ▲0.441.83 ▲0.1342.39 ▲1.35
Dashboard /wp-admin2,234 ▲285.83 ▲0.93100.14 ▼28.6241.30 ▼26.49
Posts /wp-admin/edit.php2,116 ▲162.01 ▲0.0238.08 ▼2.8436.18 ▲0.99
Add New Post /wp-admin/post-new.php1,558 ▲1323.18 ▼0.31693.44 ▲13.6964.27 ▲10.55
Media Library /wp-admin/upload.php1,410 ▲104.22 ▼0.11126.31 ▲15.7250.79 ▲5.83

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Donate link: Invalid URI ("www.elfskot.com")
You can take inspiration from this readme.txt

elfskot-product-configurator/elfskotproductconfigurator.php 92% from 13 tests

The principal PHP file in "Elfskot Product Configurator Plugin" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("elfskot-product-configurator.php" instead of "elfskotproductconfigurator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin206 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP44620202
INI1104

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin