Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.48ms] Passed 4 tests
Analyzing server-side resources used by Credit Card Number Generator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 38.53 ▼3.21 |
Dashboard /wp-admin | 3.43 ▲0.13 | 49.86 ▲2.50 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 45.30 ▼1.92 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 85.18 ▼7.30 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 39.97 ▲6.38 |
Credit Card Number Generator /wp-admin/options-general.php?page=wli-credit-card-generator | 3.32 | 34.86 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
CCNG_DUMMY_CARD_status |
db_upgraded |
widget_recent-posts |
widget_credit_card_number_generator_widget |
widget_credit_card_number_validator_widget |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Credit Card Number Generator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲198 | 14.23 ▼0.15 | 7.21 ▲5.30 | 39.05 ▼10.56 |
Dashboard /wp-admin | 2,229 ▲41 | 5.07 ▼0.83 | 113.63 ▲9.09 | 41.88 ▲0.26 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.27 ▲0.26 | 35.77 ▼1.43 | 29.58 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.55 ▲5.48 | 657.87 ▲46.44 | 37.06 ▼16.28 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.43 ▲0.24 | 96.65 ▲1.45 | 42.18 ▼5.97 |
Credit Card Number Generator /wp-admin/options-general.php?page=wli-credit-card-generator | 1,789 | 3.00 | 62.68 | 35.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- widget_credit_card_number_validator_widget
- CCNG_DUMMY_CARD_status
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_credit_card_number_generator_widget
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/credit-card-number-generator/public/credit-card-number-generator-public.php:36
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/credit-card-number-generator/admin/class-credit-card-number-generator-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/credit-card-number-generator/admin/class-credit-card-number-generator-admin.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/credit-card-number-generator/admin/class-credit-card-number-validator-widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% 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 to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
- Requires at least: Invalid version format
credit-card-number-generator/credit-card-number-generator.php 92% from 13 tests
This is the main PHP file of "Credit Card Number Generator" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin839 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 186 | 104 | 546 |
JavaScript | 2 | 99 | 58 | 200 |
CSS | 2 | 54 | 1 | 93 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/card_sprites.png | 17.64KB | 6.70KB | ▼ 62.02% |
assets/images/card-unknown.png | 0.73KB | 0.52KB | ▼ 28.63% |
assets/images/logo.png | 0.24KB | 0.25KB | 0.00% |