89% connector-for-wootoapp-mobile

Code Review | Connector for WooToApp Mobile - WooCommerce Native Mobile App.

WordPress plugin Connector for WooToApp Mobile - WooCommerce Native Mobile App. scored89%from 54 tests.

About plugin

  • Plugin page: connector-for-woo...
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.2.4
  • WordPress version: 6.3.1
  • First release: Feb 2, 2018
  • Latest release: Nov 25, 2019
  • Number of updates: 16
  • Update frequency: every 41.3 days
  • Top authors: rrrhys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,903 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Connector for WooToApp Mobile - WooCommerce Native Mobile App.
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.63 ▼0.54
Dashboard /wp-admin3.32 ▲0.0145.54 ▼2.61
Posts /wp-admin/edit.php3.37 ▲0.0145.81 ▼2.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.45 ▼1.69
Media Library /wp-admin/upload.php3.24 ▲0.0136.64 ▲6.08

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Connector for WooToApp Mobile - WooCommerce Native Mobile App.
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.57 ▼0.801.72 ▲0.0743.18 ▼1.52
Dashboard /wp-admin2,203 ▲155.83 ▼0.03102.38 ▼9.8040.69 ▼9.53
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0438.94 ▲1.6636.96 ▲4.15
Add New Post /wp-admin/post-new.php1,542 ▲923.08 ▼0.42575.96 ▼46.4847.14 ▼8.77
Media Library /wp-admin/upload.php1,391 ▼04.24 ▲0.05100.52 ▲4.1744.74 ▲0.10

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
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • wootoapp_blindkey
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: Please take inspiration from this readme.txt

connector-for-wootoapp-mobile/woo-to-app.php 85% from 13 tests

"Connector for WooToApp Mobile - WooCommerce Native Mobile App." version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("connector-for-wootoapp-mobile.php" instead of "woo-to-app.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 350 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin330 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP214151321
Markdown1409

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods423.53%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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