Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼141.68ms] Passed 4 tests
Analyzing server-side resources used by AB Simple Weather
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 44.45 ▲24.30 |
Dashboard /wp-admin | 3.11 ▲0.05 | 46.03 ▲1.50 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 44.89 ▲2.10 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 84.26 ▼568.81 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 29.01 ▼1.52 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
absw_plugin_options |
Browser metrics Passed 4 tests
Checking browser requirements for AB Simple Weather
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.03 ▲0.45 | 10.64 ▲0.79 | 47.77 ▲2.34 |
Dashboard /wp-admin | 2,990 ▲63 | 5.85 ▼0.12 | 135.66 ▼18.51 | 104.82 ▼2.21 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.71 ▼0.11 | 62.42 ▼2.25 | 99.94 ▲9.25 |
Add New Post /wp-admin/post-new.php | 1,685 ▲185 | 18.81 ▲0.24 | 360.90 ▲3.21 | 111.79 ▲2.88 |
Media Library /wp-admin/upload.php | 1,830 ▲23 | 5.04 ▲0.04 | 138.05 ▼25.71 | 116.85 ▼1.71 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- absw_plugin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ab-simple-weather/ab-simple-weather.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: 12
ab-simple-weather/ab-simple-weather.php Passed 13 tests
The principal PHP file in "AB Simple Weather" v. 1.2 is loaded by WordPress automatically on each request
68 characters long description:
A simple but powerful plugin to show current weather in your website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected524 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 60 | 3 | 202 |
PHP | 1 | 4 | 7 | 183 |
SVG | 1 | 0 | 0 | 122 |
JavaScript | 2 | 0 | 1 | 17 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 2.27KB | 1.95KB | ▼ 14.23% |