90% easy-product-exporter

Code Review | Easy Product Exporter

WordPress plugin Easy Product Exporter scored90%from 54 tests.

About plugin

  • Plugin page: easy-product-expo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 14, 2022
  • Latest release: Oct 5, 2023
  • Number of updates: 32
  • Update frequency: every 9.4 days
  • Top authors: dhavalpanchal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /173 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼6.04ms] Passed 4 tests

This is a short check of server-side resources used by Easy Product Exporter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1143.24 ▼1.64
Dashboard /wp-admin3.42 ▲0.1147.36 ▼2.98
Posts /wp-admin/edit.php3.53 ▲0.1747.56 ▼2.36
Add New Post /wp-admin/post-new.php6.02 ▲0.1382.87 ▼17.16
Media Library /wp-admin/upload.php3.34 ▲0.1136.54 ▲0.29

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Product Exporter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.35 ▲0.071.67 ▼0.3043.84 ▲3.97
Dashboard /wp-admin2,199 ▲225.58 ▼0.0684.73 ▼7.4338.60 ▼0.81
Posts /wp-admin/edit.php2,107 ▲71.98 ▼0.0536.24 ▼3.7035.96 ▲0.19
Add New Post /wp-admin/post-new.php1,532 ▲622.96 ▲0.00620.41 ▼49.7257.66 ▼1.89
Media Library /wp-admin/upload.php1,401 ▼24.18 ▲0.0198.80 ▼4.0845.07 ▼0.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
No tags were found

easy-product-exporter/easy-product-exporter.php Passed 13 tests

The main PHP script in "Easy Product Exporter" version 1.0.0 is automatically included on every request by WordPress
99 characters long description:
Single products and selected products from CSV and XML files can be exported to the product grid. 

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin560 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10236455490
CSS18036
JavaScript115034

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity12.57
▷ Minimum class complexity1.00
▷ Maximum class complexity76.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2985.29%
▷ Protected methods00.00%
▷ Private methods514.71%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin