Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/onepgr/onepgr.php+44
Undefined variable: new_options
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.91ms] Passed 4 tests
Server-side resources used by OnePgr Lobby
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.35 ▼2.25 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.79 ▼2.96 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 42.30 ▼2.89 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 79.77 ▼19.55 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.81 ▲0.89 |
Onepgr /wp-admin/options-general.php?page=onepgr_settings | 3.21 | 29.70 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
onepgr_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for OnePgr Lobby
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,247 ▲486 | 14.46 ▼0.12 | 19.31 ▲17.60 | 38.59 ▼3.70 |
Dashboard /wp-admin | 2,213 ▲39 | 5.57 ▲0.03 | 81.66 ▼3.67 | 38.18 ▼6.14 |
Posts /wp-admin/edit.php | 2,121 ▲24 | 2.02 ▲0.02 | 35.69 ▲0.00 | 35.27 ▲1.05 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.19 ▲0.15 | 633.79 ▼62.49 | 53.69 ▼6.02 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.21 ▲0.05 | 103.86 ▲8.20 | 44.17 ▼3.54 |
Onepgr /wp-admin/options-general.php?page=onepgr_settings | 906 | 1.82 | 27.46 | 27.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=onepgr_settings
- > Notice in wp-content/plugins/onepgr/onepgr.php+99
Undefined index: onepgr_setup
- > GET request to /wp-admin/options-general.php?page=onepgr_settings
- > Notice in wp-content/plugins/onepgr/onepgr.php+102
Undefined index: onepgr_code_snippet
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3, #4, #5 in onepgr/assets to your readme.txt
onepgr/onepgr.php Passed 13 tests
This is the main PHP file of "OnePgr Lobby" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
71 characters long description:
Onepgr's powerful customer lobby now on your Wordpress powered website.
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
Success! There were no dangerous files found in this plugin224 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 88 | 64 | 213 |
JavaScript | 1 | 5 | 0 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
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 | 15 | |
▷ Named functions | 15 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/default.png | 5.79KB | 4.27KB | ▼ 26.26% |
images/logo.png | 17.34KB | 2.73KB | ▼ 84.28% |
1.0/images/default.png | 9.50KB | 4.45KB | ▼ 53.20% |
1.0/images/logo.png | 17.34KB | 2.73KB | ▼ 84.28% |