Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/pictips/pictips.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; pictips has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼312.60ms] Passed 4 tests
An overview of server-side resources used by PicTips
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼1.04 | 9.39 ▼20.55 |
Dashboard /wp-admin | 1.81 ▼1.24 | 6.59 ▼36.18 |
Posts /wp-admin/edit.php | 1.81 ▼1.30 | 5.81 ▼32.02 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.62 | 5.07 ▼1,139.53 |
Media Library /wp-admin/upload.php | 1.81 ▼1.20 | 5.76 ▼42.67 |
PicTips /wp-admin/options-general.php?page=pictips_display | 1.81 | 5.32 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for PicTips
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,659 ▲77 | 15.85 ▼0.07 | 7.69 ▲0.88 | 44.24 ▼5.57 |
Dashboard /wp-admin | 2,940 ▲90 | 5.97 ▲0.12 | 141.06 ▲4.15 | 112.79 ▲1.61 |
Posts /wp-admin/edit.php | 2,713 ▲7 | 2.69 ▲0.01 | 67.78 ▲3.78 | 94.91 ▲6.36 |
Add New Post /wp-admin/post-new.php | 1,595 ▼58 | 13.59 ▼5.33 | 296.43 ▼98.67 | 111.44 ▼3.21 |
Media Library /wp-admin/upload.php | 1,776 ▲1 | 5.00 ▼0.02 | 144.33 ▼27.07 | 114.58 ▼6.95 |
PicTips /wp-admin/options-general.php?page=pictips_display | 1,177 | 2.08 | 59.81 | 70.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/pictips/pictips.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; pictips has a deprecated constructor
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=pictips_display
- > Deprecated in wp-content/plugins/pictips/pictips.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; pictips has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=pictips_display
- > Deprecated in wp-content/plugins/pictips/php/pictips-settings.php+27
Methods with the same name as their class will not be constructors in a future version of PHP; eightmc_settings has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=pictips_display
- > Warning in wp-content/plugins/pictips/php/pictips-settings.php+35
include_once(premium-settings.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/options-general.php?page=pictips_display
- > Warning in wp-content/plugins/pictips/php/pictips-settings.php+35
include_once(): Failed opening 'premium-settings.php' for inclusion (include_path='.:/usr/share/php')
- > GET request to /wp-admin/options-general.php?page=pictips_display
- > Deprecated in wp-content/plugins/pictips/php/pictips-custom-styles-main.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; pictips_custom_styles_main has a deprecated constructor
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/pictips/php/pictips-settings.php:73
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pictips/pictips.php:25
- > 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
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 descriptions for these screenshots #1, #2 in pictips/assets to your readme.txt
pictips/pictips.php Passed 13 tests
The main file in "PicTips" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Provides a shortcode for adding images as ToolTips
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected849 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 189 | 207 | 489 |
JavaScript | 2 | 102 | 41 | 293 |
CSS | 3 | 19 | 32 | 67 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 23.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/pictipsbutton.png | 0.83KB | 1.21KB | 0.00% |
img/imageloading.png | 7.37KB | 3.25KB | ▼ 55.90% |