89% poky-product-importer

Code Review | POKY - Product Importer

WordPress plugin POKY - Product Importer scored89%from 54 tests.

About plugin

  • Plugin page: poky-product-impo...
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Nov 8, 2020
  • Latest release: Apr 11, 2023
  • Number of updates: 12
  • Update frequency: every 73.8 days
  • Top authors: adspair (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

900+ active /6,250 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by POKY - Product Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.24 ▲0.37
Dashboard /wp-admin3.31 ▲0.0049.67 ▲0.16
Posts /wp-admin/edit.php3.36 ▲0.0047.29 ▼7.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.31 ▼16.63
Media Library /wp-admin/upload.php3.23 ▲0.0036.81 ▲0.36

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for POKY - Product Importer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.201.74 ▼0.0843.52 ▲1.02
Dashboard /wp-admin2,206 ▲185.86 ▲0.97105.44 ▼3.1142.02 ▼2.80
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0639.92 ▼1.2834.96 ▼2.72
Add New Post /wp-admin/post-new.php1,533 ▼923.10 ▲4.76692.17 ▲81.6653.00 ▼4.81
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.02113.28 ▲1.9747.95 ▲3.28

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

poky-product-importer/poky.php 85% from 13 tests

The main PHP script in "POKY - Product Importer" version 2.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("poky-product-importer.php" instead of "poky.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("2.9.1" instead of "4.4")

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
Good job! No executable or dangerous file extensions detected326 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP68883326

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.00
▷ Minimum class complexity3.00
▷ Maximum class complexity21.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods13
▷ Static methods538.46%
▷ Public methods753.85%
▷ Protected methods00.00%
▷ Private methods646.15%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin