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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.16MB] [CPU: ▼11.14ms] Passed 4 tests
An overview of server-side resources used by WP28 Pague com Pix
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.88 ▼3.35 |
Dashboard /wp-admin | 3.20 ▼0.10 | 30.17 ▼17.30 |
Posts /wp-admin/edit.php | 3.27 ▼0.09 | 36.40 ▼15.15 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.45 | 80.33 ▼8.77 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 34.13 ▼0.04 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 158 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP28 Pague com Pix
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.35 ▲0.00 | 1.79 ▲0.32 | 44.37 ▼0.50 |
Dashboard /wp-admin | 2,211 ▲31 | 5.57 ▼0.08 | 84.46 ▼6.95 | 42.59 ▼1.72 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.98 ▲0.03 | 39.14 ▲1.36 | 37.62 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,539 ▲8 | 23.18 ▲0.14 | 672.66 ▲54.84 | 59.12 ▲8.60 |
Media Library /wp-admin/upload.php | 1,413 ▲19 | 4.17 ▼0.01 | 112.65 ▲3.18 | 49.56 ▲5.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 68× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/html.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\QRCodeException' not found in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/src/Output/QRCodeOutputException.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP28\\PAGUECOMPIX\\Includes\\Fields\\BaseField' not found in wp-content/plugins/wp28-pague-com-pix/src/Includes/Fields/Checkbox.php:11
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/svg.php on line 15
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/fpdf.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/imagick.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCodeTest\\Data\\DatainterfaceTestAbstract' not found in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/tests/Data/NumberTest.php:21
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/public/qrcode.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QRImage' not found in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/examples/QRImageWithLogo.php:24
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCodeTest\\Data\\DatainterfaceTestAbstract' not found in wp-content/plugins/wp28-pague-com-pix/vendor/chillerlan/php-qrcode/tests/Data/KanjiTest.php:21
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: woocommerce, payment, pix, discount
wp28-pague-com-pix/wp28-pague-com-pix.php 77% from 13 tests
Analyzing the main PHP file in "WP28 Pague com Pix" version 1.0.1
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.5")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin7,407 lines of code in 133 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 100 | 2,174 | 7,975 | 6,129 |
JSON | 4 | 0 | 0 | 264 |
YAML | 8 | 64 | 7 | 234 |
Markdown | 3 | 52 | 0 | 228 |
PO File | 2 | 70 | 74 | 188 |
XML | 5 | 0 | 0 | 141 |
HTML | 1 | 26 | 0 | 137 |
SVG | 3 | 0 | 1 | 52 |
JavaScript | 4 | 0 | 2 | 20 |
Dockerfile | 1 | 5 | 2 | 10 |
Bourne Shell | 1 | 2 | 0 | 3 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 3 | |
Traits | 4 | |
Classes | 69 | |
▷ Abstract classes | 6 | 8.70% |
▷ Concrete classes | 63 | 91.30% |
▷ Final classes | 16 | 25.40% |
Methods | 361 | |
▷ Static methods | 36 | 9.97% |
▷ Public methods | 267 | 73.96% |
▷ Protected methods | 77 | 21.33% |
▷ Private methods | 17 | 4.71% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 71 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 71 | 100.00% |
▷ Public constants | 60 | 84.51% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/chillerlan/php-qrcode/examples/octocat.png | 2.41KB | 2.46KB | 0.00% |
src/Assets/icon-pix.png | 4.23KB | 2.23KB | ▼ 47.37% |
vendor/chillerlan/php-qrcode/examples/example_svg.png | 15.55KB | 6.70KB | ▼ 56.90% |
vendor/chillerlan/php-qrcode/examples/example_image.png | 2.23KB | 1.09KB | ▼ 50.94% |
src/Assets/logo_pix.png | 2.85KB | 1.83KB | ▼ 35.64% |