89% store-manager-connector

Code Review | Store Manager Connector

WordPress plugin Store Manager Connector scored89%from 54 tests.

About plugin

  • Plugin page: store-manager-con...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-6.4
  • WordPress version: 6.3.1
  • First release: Feb 16, 2017
  • Latest release: Nov 17, 2023
  • Number of updates: 58
  • Update frequency: every 42.5 days
  • Top authors: eMagicOne (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

800+ active /16,383 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.46ms] Passed 4 tests

An overview of server-side resources used by Store Manager Connector
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0335.96 ▲0.86
Dashboard /wp-admin3.34 ▼0.0142.70 ▼15.81
Posts /wp-admin/edit.php3.39 ▲0.0347.38 ▲0.65
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.83 ▼4.99
Media Library /wp-admin/upload.php3.26 ▲0.0333.14 ▼1.67

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Store Manager Connector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3614.69 ▲0.331.71 ▼0.0137.93 ▼0.83
Dashboard /wp-admin2,203 ▲265.60 ▼0.0791.34 ▲2.6741.19 ▼1.13
Posts /wp-admin/edit.php2,109 ▲91.97 ▼0.0439.62 ▼5.3741.11 ▲4.26
Add New Post /wp-admin/post-new.php1,534 ▲523.12 ▼0.55681.53 ▲1.0754.99 ▲6.13
Media Library /wp-admin/upload.php1,405 ▲114.28 ▲0.0898.70 ▲0.9042.24 ▼2.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt might help

store-manager-connector/smconnector.php 92% from 13 tests

"Store Manager Connector" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("store-manager-connector.php" instead of "smconnector.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected3,728 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP57102843,533
CSS21211187
JavaScript1008

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity85.17
▷ Minimum class complexity1.00
▷ Maximum class complexity375.00
Average method complexity3.95
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods232
▷ Static methods52.16%
▷ Public methods15767.67%
▷ Protected methods00.00%
▷ Private methods7532.33%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants93
▷ Global constants1819.35%
▷ Class constants7580.65%
▷ Public constants75100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/emagicone.png0.67KB0.91KB0.00%
images/woo.png0.84KB0.85KB0.00%