Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼3.29ms] Passed 4 tests
This is a short check of server-side resources used by DigiPass
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 46.82 ▲0.14 |
Dashboard /wp-admin | 3.73 ▲0.43 | 52.66 ▼7.97 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 50.29 ▼3.95 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 102.45 ▼1.36 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 39.11 ▲4.41 |
DigiPass /wp-admin/options-general.php?page=digipass | 3.63 | 36.49 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 50 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_digipass_tokens |
wp_digipass_connections |
wp_digipass_validations |
New WordPress options |
---|
widget_recent-comments |
DIGIPASS_OPTIONS |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for DigiPass
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲95 | 13.87 ▼0.50 | 9.13 ▲7.30 | 46.49 ▲7.81 |
Dashboard /wp-admin | 2,201 ▲20 | 5.65 ▼0.13 | 91.61 ▼8.99 | 39.47 ▼1.47 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.02 ▲0.03 | 38.39 ▲1.56 | 33.57 ▼1.48 |
Add New Post /wp-admin/post-new.php | 6,238 ▲4,711 | 21.14 ▼1.89 | 889.95 ▲169.09 | 72.99 ▲24.07 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.33 ▲0.11 | 99.05 ▼8.12 | 43.16 ▲1.17 |
DigiPass /wp-admin/options-general.php?page=digipass | 934 | 1.66 | 22.52 | 28.51 |
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
These items require your attention
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_digipass_tokens
- wp_digipass_validations
- wp_digipass_connections
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/scripts/bump_major_version.php
- > /wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/scripts/bump_patch_version.php
- > /wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/scripts/v4_migration.php
- > /wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/scripts/bump_minor_version.php
- 102× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/progress_advanced.php on line 2
- > PHP Warning
require(wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/google_plus_profile.php on line 2
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/reddit_top_pics.php on line 2
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/twitter_trending_topics.php on line 2
- > PHP Warning
require(wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/flickr_upload_photo.php on line 2
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/instagram_search_photos.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'DIGIPASS_DIRincludes/netlicensing/Libraries/curl/curl.php' (include_path='.:/usr/share/php') in wp-content/plugins/digipass/includes/netlicensing/netlicensing-load.php on line 3
- > PHP Warning
require(wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/progress.php on line 2
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/mailchimp_subscribe_email_address.php on line 2
- > PHP Warning
require(wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/digipass/vendor/php-curl-class/php-curl-class/examples/set_url_2.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== digipass ===
) - Tags: There are too many tags (15 tag instead of maximum 10)
- Screenshots: Screenshot #1 (Protect post using DigiPass) image missing
digipass/digipass.php Passed 13 tests
The main file in "DigiPass" v. 0.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
The best way for publishers and bloggers to monetize their content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected10,741 lines of code in 119 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 92 | 1,547 | 1,683 | 9,564 |
Bourne Shell | 6 | 47 | 42 | 285 |
Markdown | 4 | 70 | 0 | 284 |
JSON | 4 | 0 | 0 | 199 |
make | 1 | 30 | 6 | 156 |
JavaScript | 4 | 14 | 5 | 90 |
reStructuredText | 3 | 44 | 46 | 60 |
Python | 1 | 72 | 178 | 41 |
CSS | 2 | 8 | 1 | 39 |
YAML | 1 | 4 | 0 | 16 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 14.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 5 | 12.82% |
▷ Concrete classes | 34 | 87.18% |
▷ Final classes | 0 | 0.00% |
Methods | 541 | |
▷ Static methods | 32 | 5.91% |
▷ Public methods | 465 | 85.95% |
▷ Protected methods | 57 | 10.54% |
▷ Private methods | 19 | 3.51% |
Functions | 212 | |
▷ Named functions | 11 | 5.19% |
▷ Anonymous functions | 201 | 94.81% |
Constants | 48 | |
▷ Global constants | 31 | 64.58% |
▷ Class constants | 17 | 35.42% |
▷ Public constants | 17 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.61MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 125.17KB | 58.89KB | ▼ 52.95% |
assets/icon-128x128.png | 0.50KB | 0.24KB | ▼ 52.16% |
assets/banner-1544x500.png | 383.10KB | 166.50KB | ▼ 56.54% |
admin/assets/img/digipass.png | 17.83KB | 0.49KB | ▼ 97.24% |
assets/icon-256x256.png | 2.16KB | 1.47KB | ▼ 31.86% |