90% extra-details-on-shop-page

Code Review | Extra Details On Shop Page

WordPress plugin Extra Details On Shop Page scored90%from 54 tests.

About plugin

  • Plugin page: extra-details-on-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 22, 2020
  • Latest release: Sep 23, 2020
  • Number of updates: 40
  • Update frequency: every 0.0 days
  • Top authors: mostafarouz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,335 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.04MB] [CPU: ▼3.57ms] Passed 4 tests

Server-side resources used by Extra Details On Shop Page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.69 ▲1.39
Dashboard /wp-admin3.36 ▲0.0147.05 ▼11.44
Posts /wp-admin/edit.php3.41 ▲0.0547.14 ▼1.70
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.02 ▼2.53
Media Library /wp-admin/upload.php3.28 ▲0.0538.88 ▲3.62

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Extra Details On Shop Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4513.25 ▼1.082.05 ▲0.2944.19 ▲0.59
Dashboard /wp-admin2,222 ▲345.84 ▼0.0696.90 ▼4.3738.20 ▼5.33
Posts /wp-admin/edit.php2,105 ▲162.00 ▼0.0034.22 ▼2.7033.98 ▲1.78
Add New Post /wp-admin/post-new.php1,546 ▲2923.19 ▲5.57650.78 ▼36.1260.33 ▲8.56
Media Library /wp-admin/upload.php1,404 ▲164.18 ▼0.2592.51 ▼4.0242.02 ▲1.17

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 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
5 plugin tags: woocommerce, shop, extra, attributes, details

extra-details-on-shop-page/Extra_Deatails_On_Shop_Page.php 92% from 13 tests

"Extra Details On Shop Page" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("extra-details-on-shop-page.php" instead of "Extra_Deatails_On_Shop_Page.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected221 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25977221

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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