Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/fossin-badge/fossin-badge.php+95
Methods with the same name as their class will not be constructors in a future version of PHP; FossInBadgeWidget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼55.10ms] Passed 4 tests
A check of server-side resources used by Foss.in Badge
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.66 ▼40.02 |
Dashboard /wp-admin | 2.10 ▼1.21 | 5.98 ▼46.49 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.87 ▼40.84 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 8.36 ▼93.05 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.49 ▼34.85 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_fossin-badge |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Foss.in Badge
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.31 ▼1.49 | 4.12 ▲1.97 | 39.64 ▼9.45 |
Dashboard /wp-admin | 2,203 ▲18 | 5.79 ▼0.09 | 94.56 ▼10.65 | 39.98 ▼4.57 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.03 | 38.99 ▲0.88 | 34.74 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.31 ▲5.91 | 660.02 ▼39.11 | 55.52 ▼15.43 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▲0.07 | 95.39 ▼24.31 | 46.05 ▼1.61 |
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
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/fossin-badge/fossin-badge.php+95
Methods with the same name as their class will not be constructors in a future version of PHP; FossInBadgeWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_fossin-badge
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/fossin-badge/fossin-badge.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: sidebar, badge, fossin
fossin-badge/fossin-badge.php Passed 13 tests
The main file in "Foss.in Badge" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
65 characters long description:
Helps you to display the Foss.in Badge in your WordPress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin102 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 54 | 102 |
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.06 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
6 PNG files occupy 0.30MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/foss.in.2012.png | 15.71KB | 7.02KB | ▼ 55.29% |
images/banner-480.png | 53.99KB | 34.13KB | ▼ 36.78% |
images/attending_250px.png | 61.27KB | 23.98KB | ▼ 60.86% |
images/banner-816.png | 112.52KB | 90.30KB | ▼ 19.74% |
images/show_me_the_code.png | 35.72KB | 15.49KB | ▼ 56.64% |