89% shelfy-mobile-commerce-platform

Code Review | Shelfy - Mobile App Builder

WordPress plugin Shelfy - Mobile App Builder scored89%from 54 tests.

About plugin

  • Plugin page: shelfy-mobile-com...
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 7, 2022
  • Latest release: May 11, 2023
  • Number of updates: 20
  • Update frequency: every 16.5 days
  • Top authors: shelfyio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,189 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Shelfy - Mobile App Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.23 ▼5.43
Dashboard /wp-admin3.31 ▲0.0051.20 ▲0.22
Posts /wp-admin/edit.php3.36 ▲0.0050.08 ▼2.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.41 ▼6.36
Media Library /wp-admin/upload.php3.23 ▲0.0041.83 ▲2.31

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Shelfy - Mobile App Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▼0.261.74 ▼1.0938.95 ▼7.85
Dashboard /wp-admin2,195 ▲215.62 ▲0.0584.54 ▼1.0641.30 ▲1.25
Posts /wp-admin/edit.php2,097 ▼31.96 ▼0.0237.05 ▲0.3234.98 ▲0.56
Add New Post /wp-admin/post-new.php1,535 ▼218.34 ▲0.09618.74 ▼33.7762.92 ▲3.07
Media Library /wp-admin/upload.php1,400 ▼34.27 ▲0.05102.44 ▲0.0844.39 ▼1.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: woocommerce, application, android, ios, mobile

shelfy-mobile-commerce-platform/shelfy.php 85% from 13 tests

This is the main PHP file of "Shelfy - Mobile App Builder" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.8" instead of "5.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("shelfy-mobile-commerce-platform.php" instead of "shelfy.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
Everything looks great! No dangerous files found in this plugin1,723 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP101374711,402
CSS1464219
JavaScript21592
SVG10010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity13.25
▷ Minimum class complexity3.00
▷ Maximum class complexity37.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods63
▷ Static methods11.59%
▷ Public methods4774.60%
▷ Protected methods00.00%
▷ Private methods1625.40%
Functions18
▷ Named functions1161.11%
▷ Anonymous functions738.89%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/woocommerce-logo.png14.69KB5.83KB▼ 60.28%
assets/icon-menu.png0.99KB0.57KB▼ 42.48%
assets/icon-big.png71.75KB23.91KB▼ 66.67%
assets/icon.png7.94KB4.02KB▼ 49.37%