Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/loylap-gift-cards/Loylap.php+28
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.93MB] [CPU: ▼53.21ms] Passed 4 tests
This is a short check of server-side resources used by LoyLap Gift Cards
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 8.00 ▼31.60 |
Dashboard /wp-admin | 2.08 ▼1.23 | 6.92 ▼45.04 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.29 ▼43.92 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.52 ▼91.87 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.56 ▼32.00 |
Server storage [IO: ▲2.60MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 598 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LoyLap Gift Cards
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲224 | 14.75 ▲0.12 | 1.49 ▼0.16 | 39.76 ▼4.27 |
Dashboard /wp-admin | 2,365 ▲174 | 6.55 ▲1.64 | 125.41 ▲23.95 | 39.64 ▼4.72 |
Posts /wp-admin/edit.php | 2,271 ▲179 | 3.35 ▲1.21 | 48.06 ▲8.63 | 31.21 ▼4.61 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.57 ▲0.51 | 602.29 ▼65.35 | 34.76 ▼19.08 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.19 ▼0.03 | 81.73 ▼25.31 | 42.28 ▼2.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/loylap-gift-cards/Loylap.php+28
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 405× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'LOYLAP_PLUGIN_PATHinc/IField.php' (include_path='.:/usr/share/php') in wp-content/plugins/loylap-gift-cards/inc/options/fields/floating_button_image.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'ProxyManager\\ProxyGenerator\\ProxyGeneratorInterface' not found in wp-content/plugins/loylap-gift-cards/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/NullObjectGenerator.php:38
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/loylap-gift-cards/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Inflector/Util/ParameterEncoderTest.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Zend\\Code\\Reflection\\ReflectionInterface' not found in wp-content/plugins/loylap-gift-cards/vendor/zendframework/zend-code/src/Reflection/ParameterReflection.php:14
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/loylap-gift-cards/vendor/zendframework/zend-code/src/Reflection/MethodReflection.php on line 272
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/loylap-gift-cards/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptor/MethodGenerator/SetMethodSuffixInterceptorTest.php:32
- > PHP Fatal error
Uncaught Error: Interface 'ProxyManager\\Signature\\ClassSignatureGeneratorInterface' not found in wp-content/plugins/loylap-gift-cards/vendor/ocramius/proxy-manager/src/ProxyManager/Signature/ClassSignatureGenerator.php:30
- > PHP Fatal error
Uncaught Error: Interface 'ProxyManager\\Proxy\\ProxyInterface' not found in wp-content/plugins/loylap-gift-cards/vendor/ocramius/proxy-manager/src/ProxyManager/Proxy/SmartReferenceInterface.php:27
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/loylap-gift-cards/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/ProxyGenerator/LazyLoadingGhost/MethodGenerator/GetProxyInitializerTest.php:32
- > PHP Fatal error
Uncaught Error: Class 'Zend\\Code\\Generator\\DocBlock\\Tag\\GenericTag' not found in wp-content/plugins/loylap-gift-cards/vendor/zendframework/zend-code/src/Generator/DocBlock/Tag.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in loylap-gift-cards/assets to your readme.txt
- Donate link: Invalid url: "--"
loylap-gift-cards/Loylap.php 77% from 13 tests
The principal PHP file in "LoyLap Gift Cards" v. 1.5.2 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("loylap-gift-cards.php" instead of "Loylap.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/loylap-gift-cards/vendor/bin/sentry.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 499 | 5,773 | 16,202 | 23,222 |
Markdown | 28 | 844 | 0 | 2,484 |
HTML | 13 | 430 | 0 | 1,851 |
CSS | 3 | 135 | 49 | 639 |
JSON | 7 | 0 | 0 | 477 |
SVG | 1 | 2 | 15 | 329 |
YAML | 4 | 9 | 0 | 151 |
JavaScript | 3 | 31 | 24 | 126 |
XML | 4 | 3 | 1 | 78 |
Bourne Shell | 2 | 3 | 1 | 17 |
make | 1 | 6 | 0 | 15 |
DOS Batch | 1 | 0 | 0 | 4 |
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 code | 0.30 |
Average class complexity | 6.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 91 | |
Interfaces | 49 | |
Traits | 3 | |
Classes | 392 | |
▷ Abstract classes | 14 | 3.57% |
▷ Concrete classes | 378 | 96.43% |
▷ Final classes | 11 | 2.91% |
Methods | 1,625 | |
▷ Static methods | 117 | 7.20% |
▷ Public methods | 1,459 | 89.78% |
▷ Protected methods | 116 | 7.14% |
▷ Private methods | 50 | 3.08% |
Functions | 94 | |
▷ Named functions | 1 | 1.06% |
▷ Anonymous functions | 93 | 98.94% |
Constants | 79 | |
▷ Global constants | 7 | 8.86% |
▷ Class constants | 72 | 91.14% |
▷ Public constants | 72 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.38MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/003-arrow.png | 4.93KB | 2.65KB | ▼ 46.26% |
assets/images/loylapFulltext_green.png | 19.53KB | 5.37KB | ▼ 72.51% |
assets/images/loylap_icon_green.png | 123.22KB | 44.67KB | ▼ 63.75% |
assets/images/loylapFulltext.png | 19.53KB | 5.37KB | ▼ 72.51% |
vendor/ocramius/proxy-manager/html-docs/img/enf.png | 3.65KB | 3.65KB | 0.00% |