Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼6.57ms] Passed 4 tests
Server-side resources used by Pontopass
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.25 ▲1.17 |
Dashboard /wp-admin | 3.42 ▲0.12 | 47.87 ▼0.17 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 43.89 ▼4.51 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 80.11 ▼19.82 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 32.41 ▼1.79 |
Pontopass /wp-admin/options-general.php?page=pontopass | 3.29 | 31.84 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
pontopass_status |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Pontopass
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.14 ▼1.31 | 1.68 ▲0.09 | 41.99 ▲1.16 |
Dashboard /wp-admin | 2,212 ▲20 | 4.83 ▼0.14 | 111.02 ▲7.61 | 41.69 ▼0.84 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.02 ▲0.03 | 34.53 ▼3.17 | 30.91 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 17.65 ▼5.68 | 686.49 ▲36.35 | 55.23 ▼1.01 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.20 ▲0.03 | 94.19 ▼2.38 | 40.36 ▼3.86 |
Pontopass /wp-admin/options-general.php?page=pontopass | 953 | 2.06 | 22.17 | 27.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- pontopass_status
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=pontopass
- > Notice in wp-content/plugins/pontopass/pontopass.php+385
Undefined variable: warndevices
- > GET request to /wp-admin/options-general.php?page=pontopass
- > Notice in wp-content/plugins/pontopass/pontopass.php+424
Undefined variable: validkey
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
include(): Failed opening 'ABSPATH/wp-includes/class-phpass.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pontopass/pontopass.php on line 17
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pontopass/pontopass.php on line 17
- > PHP Warning
include(ABSPATH/wp-includes/class-phpass.php): failed to open stream: No such file or directory in wp-content/plugins/pontopass/pontopass.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pontopass/pontopass.php:451
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: two-factor authentication, autenticacao de dois fatores, 2fa, security, duplo fator...
pontopass/pontopass.php 92% from 13 tests
This is the main PHP file of "Pontopass" version 1.0.2, 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:
- Description: The description should be shorter than 140 characters (currently 281 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin480 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 271 | 213 | 470 |
JavaScript | 1 | 3 | 0 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 1 | 5.88% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo_pontopass.png | 2.52KB | 2.19KB | ▼ 13.11% |