Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼136.63ms] Passed 4 tests
Server-side resources used by Dat Pass
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 37.22 ▲9.42 |
Dashboard /wp-admin | 3.08 ▲0.03 | 44.90 ▲4.53 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 46.47 ▲4.82 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 95.33 ▼546.62 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 33.19 ▼9.23 |
Dat Pass /wp-admin/options-general.php?page=datpass-options | 2.97 | 29.66 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Dat Pass
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,685 ▲89 | 15.92 ▲0.34 | 8.25 ▼2.61 | 46.31 ▼3.15 |
Dashboard /wp-admin | 2,994 ▲60 | 5.95 ▼0.16 | 136.25 ▼11.16 | 116.17 ▲3.53 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.00 | 67.09 ▲0.47 | 91.47 ▲4.02 |
Add New Post /wp-admin/post-new.php | 1,618 ▼254 | 21.76 ▲2.63 | 269.42 ▼93.37 | 103.12 ▼10.50 |
Media Library /wp-admin/upload.php | 1,827 ▲17 | 4.99 ▼0.01 | 149.68 ▲7.33 | 117.41 ▼8.36 |
Dat Pass /wp-admin/options-general.php?page=datpass-options | 1,146 | 2.05 | 54.81 | 134.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 12 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=datpass-options
- > Notice in wp-content/plugins/dat-pass/inc/datpass-admin.php+16
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dat-pass/inc/datpass-admin.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dat-pass/dat-pass.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dat-pass/inc/datpass-content.php:41
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in dat-pass/assets to your readme.txt
dat-pass/dat-pass.php Passed 13 tests
"Dat Pass" version 1.1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
17 characters long description:
Content is locked
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin255 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 2 | 1 | 105 |
PHP | 3 | 0 | 20 | 92 |
PO File | 2 | 20 | 40 | 57 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/datpass.png | 29.46KB | 9.72KB | ▼ 67.02% |