Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.93MB] [CPU: ▼48.69ms] Passed 4 tests
An overview of server-side resources used by Weather Underground
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 9.24 ▼30.74 |
Dashboard /wp-admin | 2.09 ▼1.26 | 9.75 ▼50.98 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 5.89 ▼37.15 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.92 ▼75.88 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 4.55 ▼26.25 |
Server storage [IO: ▲3.39MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 1,207 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_wunderground_forecast_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Weather Underground
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲213 | 14.28 ▼0.38 | 9.76 ▲8.17 | 37.82 ▼4.68 |
Dashboard /wp-admin | 2,195 ▲18 | 5.65 ▲0.05 | 84.09 ▼1.22 | 36.53 ▼1.64 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.00 ▲0.02 | 37.69 ▲1.68 | 34.64 ▼5.72 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.74 ▲0.17 | 632.67 ▼51.93 | 35.68 ▼28.55 |
Media Library /wp-admin/upload.php | 1,414 ▲11 | 4.19 ▲0.06 | 97.37 ▼1.51 | 43.05 ▼3.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > User deprecated in wp-content/plugins/wunderground/vendor/twig/twig/lib/Twig/Autoloader.php+12
The Twig_Autoloader class is deprecated since version 1.21 and will be removed in 2.0. Use Composer instead.
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_wunderground_forecast_widget
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 221× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Function' not found in wp-content/plugins/wunderground/vendor/twig/twig/lib/Twig/Function/Function.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/wunderground/vendor/twig/twig/test/Twig/Tests/Node/Expression/Binary/AndTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/wunderground/vendor/twig/twig/lib/Twig/Node/Include.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/wunderground/vendor/twig/twig/lib/Twig/Node/For.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/wunderground/vendor/twig/twig/lib/Twig/Extension/Profiler.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_IntegrationTestCase' not found in wp-content/plugins/wunderground/vendor/twig/twig/test/Twig/Tests/IntegrationTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/wunderground/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Add.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/wunderground/vendor/twig/twig/lib/Twig/Node/Spaceless.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig_Environment' not found in wp-content/plugins/wunderground/vendor/twig/twig/test/Twig/Tests/Node/Expression/PHP53/TestInclude.php:3
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/wunderground/vendor/twig/twig/lib/Twig/TokenParser/From.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
- Screenshots: Screenshot #1 (Horizontal Table layout) image not found
wunderground/wunderground.php 85% from 13 tests
The primary PHP file in "Weather Underground" version 2.1.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
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 plugin38,256 lines of code in 456 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 277 | 3,580 | 6,708 | 15,020 |
PO File | 27 | 4,238 | 4,297 | 9,382 |
SVG | 3 | 0 | 0 | 8,756 |
reStructuredText | 88 | 2,285 | 2,030 | 3,161 |
C | 1 | 161 | 174 | 792 |
LESS | 10 | 125 | 26 | 462 |
HTML | 29 | 120 | 0 | 304 |
CSS | 5 | 0 | 7 | 124 |
JSON | 2 | 0 | 0 | 111 |
JavaScript | 2 | 23 | 15 | 56 |
YAML | 1 | 7 | 1 | 31 |
XML | 1 | 2 | 0 | 23 |
C/C++ Header | 1 | 7 | 13 | 15 |
Twig | 8 | 6 | 0 | 14 |
m4 | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 22 | |
Traits | 0 | |
Classes | 274 | |
▷ Abstract classes | 14 | 5.11% |
▷ Concrete classes | 260 | 94.89% |
▷ Final classes | 1 | 0.38% |
Methods | 1,245 | |
▷ Static methods | 18 | 1.45% |
▷ Public methods | 1,098 | 88.19% |
▷ Protected methods | 126 | 10.12% |
▷ Private methods | 21 | 1.69% |
Functions | 70 | |
▷ Named functions | 67 | 95.71% |
▷ Anonymous functions | 3 | 4.29% |
Constants | 45 | |
▷ Global constants | 1 | 2.22% |
▷ Class constants | 44 | 97.78% |
▷ Public constants | 44 | 100.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
9 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 |
assets/img/thumbnail/table-vertical.png | 29.98KB | 19.94KB | ▼ 33.49% |
assets/img/border-stripe.png | 0.56KB | 0.44KB | ▼ 22.01% |
assets/img/logos/logo_130x80.png | 4.12KB | 2.94KB | ▼ 28.57% |
assets/img/logos/wundergroundLogo_4c_horz.png | 1.69KB | 1.69KB | 0.00% |
assets/img/thumbnail/table-horizontal.png | 85.44KB | 23.45KB | ▼ 72.56% |