90% front-end-pm-woocommerce-integration

Code Review | Front End PM - WooCommerce Integration

WordPress plugin Front End PM - WooCommerce Integration scored90%from 54 tests.

About plugin

  • Plugin page: front-end-pm-wooc...
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 6.3.1
  • First release: Sep 23, 2018
  • Latest release: May 31, 2019
  • Number of updates: 5
  • Update frequency: every 50.0 days
  • Top authors: shamim51 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,528 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
Install script ran successfully

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

A check of server-side resources used by Front End PM - WooCommerce Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.40 ▲2.28
Dashboard /wp-admin3.31 ▼0.0444.60 ▼10.68
Posts /wp-admin/edit.php3.36 ▲0.0040.36 ▼5.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.03 ▼12.52
Media Library /wp-admin/upload.php3.23 ▲0.0034.29 ▲4.68

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Front End PM - WooCommerce Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲614.44 ▼0.201.77 ▲0.0443.71 ▲4.90
Dashboard /wp-admin2,192 ▲225.54 ▼0.0483.66 ▼13.5038.89 ▼3.40
Posts /wp-admin/edit.php2,103 ▼02.04 ▲0.0736.19 ▼4.5432.36 ▼2.48
Add New Post /wp-admin/post-new.php1,529 ▼023.41 ▲0.26635.05 ▲2.3251.04 ▼6.46
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.0393.52 ▼9.5340.85 ▼4.67

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • 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)
Even though no errors were found, this is by no means 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

front-end-pm-woocommerce-integration/front-end-pm-woocommerce-integration.php Passed 13 tests

The main file in "Front End PM - WooCommerce Integration" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
52 characters long description:
Front End PM extension to integrate with WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected180 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34014180

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.00
▷ Minimum class complexity2.00
▷ Maximum class complexity20.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin