Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/olimometer/olimometer.php+1191
Function create_function() is deprecated
Server metrics [RAM: ▼2.11MB] [CPU: ▼347.19ms] Passed 4 tests
Analyzing server-side resources used by Olimometer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.26 ▼1.26 | 5.66 ▼50.56 |
Dashboard /wp-admin | 2.27 ▼1.13 | 5.70 ▼28.20 |
Posts /wp-admin/edit.php | 2.28 ▼1.37 | 5.55 ▼31.49 |
Add New Post /wp-admin/post-new.php | 2.27 ▼4.70 | 5.26 ▼1,278.49 |
Media Library /wp-admin/upload.php | 2.27 ▼1.02 | 4.79 ▼20.66 |
Olimometer /wp-admin/options-general.php?page=olimometer_manage | 2.28 | 4.96 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 51 new files
Database: 1 new table, 5 new options
New tables |
---|
wp_olimometer_olimometers |
New WordPress options |
---|
olimometer_updated_to_two |
widget_olimometerwidget |
olimometer_skins_custom_location |
olimometer_db_version |
olimometer_skins_location |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Olimometer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,934 ▲180 | 16.30 ▲0.55 | 6.40 ▲0.13 | 1.97 ▼0.67 |
Dashboard /wp-admin | 3,063 ▲202 | 6.16 ▼0.01 | 121.87 ▼17.37 | 165.45 ▼3.65 |
Posts /wp-admin/edit.php | 2,696 ▲8 | 3.24 ▲0.00 | 62.23 ▼0.37 | 137.58 ▼4.95 |
Add New Post /wp-admin/post-new.php | 1,710 ▲71 | 18.34 ▲2.87 | 427.25 ▲38.58 | 156.03 ▲0.83 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.53 ▲0.03 | 143.47 ▲1.62 | 189.63 ▲5.77 |
Olimometer /wp-admin/options-general.php?page=olimometer_manage | 2,475 | 2.91 | 67.60 | 181.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/olimometer/olimometer.php+1191
Function create_function() is deprecated
- The uninstall procedure failed, leaving 1 table in the database
- wp_olimometer_olimometers
- The uninstall procedure has failed, leaving 5 options in the database
- olimometer_db_version
- olimometer_updated_to_two
- olimometer_skins_custom_location
- olimometer_skins_location
- widget_olimometerwidget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=olimometer_manage
- > Deprecated in wp-content/plugins/olimometer/olimometer.php+1191
Function create_function() is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=olimometer_manage
- > Deprecated in wp-content/plugins/olimometer/skins.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; Olimometer_Skins has a deprecated constructor
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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/olimometer/thermometer.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olimometer/olimometer.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (The Olimometer in a sidebar widget with default skin), #2 (The Red and Rounded skin in a widget with a header), #3 (The Horizontal Thin and Red skin), #4 (Olimometer settings page)
- Tags: Please delete some tags, you are using 23 tag instead of maximum 10
olimometer/olimometer.php Passed 13 tests
Analyzing the main PHP file in "Olimometer" version 2.57
132 characters long description:
A dynamic fundraising thermometer with PayPal integration, customisable height, currency, background colour, transparency and skins.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,763 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 491 | 383 | 1,833 |
JavaScript | 2 | 136 | 36 | 778 |
XML | 1 | 0 | 0 | 143 |
HTML | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 28.67 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
35 PNG files occupy 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
skins/oli-watermaster/watermaster-bottom.png | 3.31KB | 0.46KB | ▼ 86.15% |
skins/oli-default/therm_bar_empty.png | 0.72KB | 0.71KB | ▼ 1.09% |
skins/oli-ourprogress-red/therm_bar_empty.png | 2.96KB | 0.37KB | ▼ 87.64% |
jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |