84% justawesome-woocommerce2app

Code Review | JustAwesome Woocommerce2App

WordPress plugin JustAwesome Woocommerce2App scored84%from 54 tests.

About plugin

  • Plugin page: justawesome-wooco...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.0
  • WordPress version: 6.3.1
  • First release: May 8, 2019
  • Latest release: May 8, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: maG66 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /481 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.70MB] [CPU: ▼22.59ms] Passed 4 tests

Analyzing server-side resources used by JustAwesome Woocommerce2App
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0051.07 ▲6.24
Dashboard /wp-admin3.31 ▼0.0453.44 ▼17.98
Posts /wp-admin/edit.php3.36 ▲0.0050.80 ▲1.37
Add New Post /wp-admin/post-new.php3.12 ▼2.7638.24 ▼73.11
Media Library /wp-admin/upload.php3.23 ▲0.0036.62 ▼0.62

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by JustAwesome Woocommerce2App
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.33 ▼0.292.20 ▲0.5245.77 ▲3.45
Dashboard /wp-admin2,189 ▲125.54 ▼0.2183.09 ▼11.9436.81 ▼2.65
Posts /wp-admin/edit.php2,103 ▼02.01 ▲0.0638.37 ▼2.6835.01 ▼3.57
Add New Post /wp-admin/post-new.php1,531 ▲323.13 ▲0.18619.45 ▼32.8450.96 ▼24.79
Media Library /wp-admin/upload.php1,397 ▼34.21 ▼0.0196.26 ▼1.2444.40 ▲0.20

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/justawesome-woocommerce2app/justawesome-woocommerce2app.php:13

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: woocoomerce, app, native, api

justawesome-woocommerce2app/justawesome-woocommerce2app.php Passed 13 tests

The main PHP script in "JustAwesome Woocommerce2App" version 1.0.0 is automatically included on every request by WordPress
54 characters long description:
Mobile Api for app deployment of JustAwesome Webdesign

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected148 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12212148

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.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