Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.34MB] [CPU: ▲21.26ms] 50% from 4 tests
Server-side resources used by Hire Me Widget
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 1,593.36ms on /wp-admin/admin.php?page=hire-me-widget)
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.34MB on /wp-admin/admin.php?page=hire-me-widget)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.20 ▲5.74 | 69.75 ▲27.81 |
Dashboard /wp-admin | 9.22 ▲5.87 | 77.74 ▲13.73 |
Posts /wp-admin/edit.php | 9.22 ▲5.86 | 78.52 ▲24.77 |
Add New Post /wp-admin/post-new.php | 9.79 ▲3.90 | 115.33 ▲19.22 |
Media Library /wp-admin/upload.php | 9.22 ▲5.99 | 65.24 ▲27.33 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.22 | 66.23 |
Hire Me Widget /wp-admin/admin.php?page=hire-me-widget | 9.22 | 1,593.36 |
Server storage [IO: ▲4.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 201 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
widget_hire_me_widget |
widget_recent-comments |
fs_active_plugins |
widget_theysaidso_widget |
fs_debug_mode |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
fs_accounts |
Browser metrics Passed 4 tests
Checking browser requirements for Hire Me Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 14.16 ▼0.21 | 1.79 ▼0.21 | 29.51 ▼22.57 |
Dashboard /wp-admin | 2,209 ▲32 | 5.61 ▼0.08 | 93.24 ▼5.23 | 43.72 ▼2.78 |
Posts /wp-admin/edit.php | 2,121 ▲18 | 2.02 ▲0.07 | 41.93 ▲0.25 | 39.69 ▲3.85 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 22.14 ▼1.09 | 679.79 ▲67.78 | 52.81 ▼10.49 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.11 ▼0.04 | 101.79 ▼0.74 | 45.44 ▼0.51 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,072 | 1.69 | 29.14 | 29.44 |
Hire Me Widget /wp-admin/admin.php?page=hire-me-widget | 980 | 1.83 | 24.01 | 60.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/hire-me-widget/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- db_upgraded
- fs_accounts
- fs_active_plugins
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_hire_me_widget
- can_compress_scripts
- fs_debug_mode
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hire-me-widget/inc/class-hire-me-widget.php:1
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
- Screenshots: A description for screenshot #1 is missing in hire-me-widget/assets to your readme.txt
hire-me-widget/hire-me-widget.php Passed 13 tests
Analyzing the main PHP file in "Hire Me Widget" version 1.0.5
136 characters long description:
Effortlessly display if your team or you are available for hire using this widget. Useful for freelance developers or designers like me.
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin49,318 lines of code in 153 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 8,030 | 17,339 | 33,615 |
PO File | 12 | 6,960 | 8,455 | 15,240 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
CSS | 14 | 9 | 1 | 28 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 91.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,265 | |
▷ Static methods | 197 | 15.57% |
▷ Public methods | 876 | 69.25% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 372 | 29.41% |
Functions | 104 | |
▷ Named functions | 104 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 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
5 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/hire-me-widget.png | 10.84KB | 4.74KB | ▼ 56.24% |
freemius/assets/img/wc-thanks-redirect.png | 23.38KB | 10.44KB | ▼ 55.36% |
freemius/assets/img/wc-thanks-redirect-pro.png | 23.38KB | 10.44KB | ▼ 55.36% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |