84% napps

Code Review | NAPPS - Mobile app builder

WordPress plugin NAPPS - Mobile app builder scored84%from 54 tests.

About plugin

  • Plugin page: napps
  • Plugin version: 1.0.24
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Nov 18, 2021
  • Latest release: Nov 13, 2023
  • Number of updates: 27
  • Update frequency: every 26.9 days
  • Top authors: nappssolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,209 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼10.84ms] Passed 4 tests

Analyzing server-side resources used by NAPPS - Mobile app builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.24 ▼0.2319.97 ▼23.78
Dashboard /wp-admin3.75 ▲0.4047.64 ▼14.84
Posts /wp-admin/edit.php3.80 ▲0.4449.47 ▲2.47
Add New Post /wp-admin/post-new.php6.44 ▲0.5583.60 ▼7.20
Media Library /wp-admin/upload.php3.67 ▲0.4438.11 ▲6.30

Server storage [IO: ▲1.16MB] [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: 71 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for NAPPS - Mobile app builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,478 ▼26914.24 ▼0.030.54 ▼1.1317.05 ▼26.03
Dashboard /wp-admin2,232 ▲555.62 ▼0.0190.47 ▲2.2440.49 ▲0.47
Posts /wp-admin/edit.php2,133 ▲362.00 ▲0.0539.77 ▲4.6933.97 ▲1.21
Add New Post /wp-admin/post-new.php1,536 ▲922.99 ▲0.01650.88 ▲32.4856.19 ▲2.43
Media Library /wp-admin/upload.php1,433 ▲334.24 ▲0.06101.47 ▼1.0042.35 ▼1.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 17× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'NAPPS\\Contracts\\IController' not found in wp-content/plugins/napps/src/Controllers/HealthController.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'NAPPS\\Contracts\\ModuleImplementation' not found in wp-content/plugins/napps/src/Modules/LinkedVariation/LinkedVariation.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'NAPPS\\Contracts\\IController' not found in wp-content/plugins/napps/src/Controllers/SmartBannerController.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'NAPPS\\Contracts\\IController' not found in wp-content/plugins/napps/src/Controllers/AuthController.php:8
    • > PHP Fatal error
      Trait 'NAPPS\\Utils\\SingletonTrait' not found in wp-content/plugins/napps/src/Router.php on line 11
    • > PHP Fatal error
      Uncaught Error: Interface 'NAPPS\\Contracts\\ModuleImplementation' not found in wp-content/plugins/napps/src/Modules/Coupons/ExclusiveCouponsModule.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'NAPPS\\Contracts\\ModuleImplementation' not found in wp-content/plugins/napps/src/Modules/AttributeStock/AttributeStockModule.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/napps/src/Modules/ShippingRateCart/shipping-rate-cart-frontend.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'NAPPS\\Contracts\\ModuleImplementation' not found in wp-content/plugins/napps/src/Modules/Admin/AdminModule.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'NAPPS\\Contracts\\ModuleImplementation' not found in wp-content/plugins/napps/src/Modules/Smartbanner/SmartbannerModule.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

napps/napps.php Passed 13 tests

"NAPPS - Mobile app builder" version 1.0.24's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
Plugin to complement the napps E-commerce solution. More on https://napps.io

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin3,711 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
PHP518151,2303,015
PO File29496269
Markdown1540235
JSON200102
CSS116067
SVG30016
XML1107

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity11.92
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces18
Interfaces2
Traits1
Classes34
▷ Abstract classes00.00%
▷ Concrete classes34100.00%
▷ Final classes00.00%
Methods187
▷ Static methods4222.46%
▷ Public methods15683.42%
▷ Protected methods126.42%
▷ Private methods1910.16%
Functions15
▷ Named functions746.67%
▷ Anonymous functions853.33%
Constants12
▷ Global constants975.00%
▷ Class constants325.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.06MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/images/google-play-get.png56.96KB56.15KB▼ 1.42%