Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/poplogin/public/poplogin-tswplugin-public.php+25
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.97MB] [CPU: ▼53.38ms] Passed 4 tests
This is a short check of server-side resources used by PopLogin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.05 ▼31.84 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.68 ▼54.83 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.38 ▼42.31 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.89 ▼84.54 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.12 ▼26.43 |
Poplogin /wp-admin/options-general.php?page=poplogin | 2.05 | 6.67 |
Server storage [IO: ▲0.25MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
poplogin_settings_plugin_activated |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PopLogin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲232 | 13.64 ▼0.74 | 6.32 ▲4.78 | 47.17 ▲7.53 |
Dashboard /wp-admin | 2,210 ▲22 | 4.89 ▼0.02 | 109.42 ▲0.76 | 45.09 ▲0.01 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.06 ▲0.04 | 40.82 ▲4.47 | 35.02 ▲1.05 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.30 ▲0.20 | 578.38 ▼15.85 | 53.50 ▲3.01 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.20 ▲0.01 | 96.13 ▼25.66 | 40.84 ▼3.22 |
Poplogin /wp-admin/options-general.php?page=poplogin | 944 | 2.01 | 24.80 | 29.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/poplogin/public/poplogin-tswplugin-public.php+25
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=poplogin
- > Notice in wp-content/plugins/poplogin/admin/poplogin-tswplugin-admin.php+169
Trying to access array offset on value of type bool
SRP 50% 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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/poplogin/includes/poplogin-tswplugin.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/poplogin/admin/poplogin-tswplugin-admin.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=poplogin
- > Network (severe)
wp-content/plugins/poplogin/lib/alpha-twitter.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #4 (Admin page with settings)
poplogin/poplogin.php 92% from 13 tests
Analyzing the main PHP file in "PopLogin" version 1.0.0
You should first fix the following items:
- 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected435 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 77 | 209 | 327 |
CSS | 1 | 15 | 10 | 94 |
JavaScript | 1 | 7 | 10 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 compressed PNG file occupies 0.23MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/poplogin-default-logo.png | 238.00KB | 259.25KB | 0.00% |