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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.24 ▼0.23 | 19.97 ▼23.78 |
Dashboard /wp-admin | 3.75 ▲0.40 | 47.64 ▼14.84 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 49.47 ▲2.47 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 83.60 ▼7.20 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 38.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,478 ▼269 | 14.24 ▼0.03 | 0.54 ▼1.13 | 17.05 ▼26.03 |
Dashboard /wp-admin | 2,232 ▲55 | 5.62 ▼0.01 | 90.47 ▲2.24 | 40.49 ▲0.47 |
Posts /wp-admin/edit.php | 2,133 ▲36 | 2.00 ▲0.05 | 39.77 ▲4.69 | 33.97 ▲1.21 |
Add New Post /wp-admin/post-new.php | 1,536 ▲9 | 22.99 ▲0.01 | 650.88 ▲32.48 | 56.19 ▲2.43 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.24 ▲0.06 | 101.47 ▼1.00 | 42.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 815 | 1,230 | 3,015 |
PO File | 2 | 94 | 96 | 269 |
Markdown | 1 | 54 | 0 | 235 |
JSON | 2 | 0 | 0 | 102 |
CSS | 1 | 16 | 0 | 67 |
SVG | 3 | 0 | 0 | 16 |
XML | 1 | 1 | 0 | 7 |
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 code | 0.44 |
Average class complexity | 11.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 34 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 34 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 187 | |
▷ Static methods | 42 | 22.46% |
▷ Public methods | 156 | 83.42% |
▷ Protected methods | 12 | 6.42% |
▷ Private methods | 19 | 10.16% |
Functions | 15 | |
▷ Named functions | 7 | 46.67% |
▷ Anonymous functions | 8 | 53.33% |
Constants | 12 | |
▷ Global constants | 9 | 75.00% |
▷ Class constants | 3 | 25.00% |
▷ Public constants | 3 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/google-play-get.png | 56.96KB | 56.15KB | ▼ 1.42% |