84% promote-mobile-app-on-website

Code Review | Promote mobile app on website

WordPress plugin Promote mobile app on website scored84%from 54 tests.

About plugin

  • Plugin page: promote-mobile-ap...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2
  • WordPress version: 6.3.1
  • First release: Sep 22, 2023
  • Latest release: Sep 22, 2023
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: omnishop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /68 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by Promote mobile app on website
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.53 ▲1.12
Dashboard /wp-admin3.32 ▲0.0144.18 ▼4.91
Posts /wp-admin/edit.php3.37 ▲0.0146.64 ▲1.36
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.28 ▼19.84
Media Library /wp-admin/upload.php3.24 ▲0.0134.95 ▲2.81
Promote Mobile App /wp-admin/options-general.php?page=pmaw-options-page3.2132.75

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Promote mobile app on website: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14514.06 ▼0.225.22 ▲3.5945.46 ▲1.45
Dashboard /wp-admin2,211 ▲195.84 ▲0.8997.87 ▼9.3639.48 ▼1.36
Posts /wp-admin/edit.php2,100 ▲112.03 ▼0.0135.47 ▼2.1028.58 ▼7.91
Add New Post /wp-admin/post-new.php1,532 ▲1323.42 ▲0.06692.41 ▲73.5369.09 ▲19.94
Media Library /wp-admin/upload.php1,390 ▲24.31 ▲0.1298.73 ▲3.0740.30 ▼1.04
Promote Mobile App /wp-admin/options-general.php?page=pmaw-options-page9182.1724.5327.25

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/promote-mobile-app-on-website/admin/partials/promote-mobile-app-on-woocommerce-admin-display.php
    • > /wp-content/plugins/promote-mobile-app-on-website/public/partials/promote-mobile-app-on-woocommerce-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: iphone, appbanner, app, promotion, ios

promote-mobile-app-on-website/promote-mobile-app-on-website.php 85% from 13 tests

"Promote mobile app on website" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 detected763 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34377418
PHP12165539320
CSS33825

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/banner-example.png9.23KB4.36KB▼ 52.78%