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
This plugin's installer ran successfully
Server metrics [RAM: ▲5.07MB] [CPU: ▲358.87ms] 25% from 4 tests
Analyzing server-side resources used by Five-Star Ratings Shortcode
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 2,133.45ms on /wp-admin/options-general.php?page=five-star-ratings-shortcode)
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.07MB on /wp-admin/admin.php?page=freemius)
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 358.87ms on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.93 ▲5.47 | 403.07 ▲367.42 |
Dashboard /wp-admin | 8.95 ▲5.65 | 425.25 ▲376.68 |
Posts /wp-admin/edit.php | 8.95 ▲5.59 | 390.08 ▲341.79 |
Add New Post /wp-admin/post-new.php | 9.48 ▲3.60 | 444.66 ▲349.58 |
Media Library /wp-admin/upload.php | 8.95 ▲5.72 | 451.84 ▲415.63 |
Five Star Ratings Shortcode Documentation /wp-admin/options-general.php?page=five-star-ratings-shortcode | 8.95 | 2,133.45 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.95 | 377.97 |
Server storage [IO: ▲3.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 200 new files
Database: no new tables, 11 new options
New WordPress options |
---|
five-star-ratings-shortcodeversion |
fsrs_version |
widget_theysaidso_widget |
can_compress_scripts |
fs_active_plugins |
fs_accounts |
fs_debug_mode |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Five-Star Ratings Shortcode
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲39 | 14.34 ▼0.03 | 1.72 ▼0.01 | 33.35 ▼4.07 |
Dashboard /wp-admin | 2,219 ▲42 | 5.64 ▼0.03 | 91.29 ▼12.35 | 41.16 ▼1.74 |
Posts /wp-admin/edit.php | 2,122 ▲19 | 1.98 ▲0.04 | 37.51 ▼4.45 | 38.52 ▲1.70 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 20.94 ▼2.23 | 592.37 ▼118.18 | 44.82 ▼5.98 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.26 ▲0.08 | 94.33 ▼6.76 | 41.36 ▼3.11 |
Five Star Ratings Shortcode Documentation /wp-admin/options-general.php?page=five-star-ratings-shortcode | 1,123 | 1.97 | 40.06 | 60.93 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,086 | 1.66 | 24.56 | 28.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/five-star-ratings-shortcode/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 10 options
- fs_active_plugins
- widget_theysaidso_widget
- fs_accounts
- five-star-ratings-shortcodeversion
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- fs_debug_mode
- can_compress_scripts
- db_upgraded
Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
5 plugin tags: accessible, stars, ratings, shortcode, icon
five-star-ratings-shortcode/five-star-ratings-shortcode.php 92% from 13 tests
"Five-Star Ratings Shortcode" version 1.2.50's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected38,266 lines of code in 154 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 124 | 8,225 | 17,888 | 34,308 |
JavaScript | 11 | 476 | 163 | 3,126 |
Markdown | 1 | 203 | 3 | 426 |
CSS | 17 | 35 | 3 | 351 |
JSON | 1 | 0 | 0 | 55 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 83.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 2 | 3.64% |
▷ Concrete classes | 53 | 96.36% |
▷ Final classes | 0 | 0.00% |
Methods | 1,311 | |
▷ Static methods | 203 | 15.48% |
▷ Public methods | 909 | 69.34% |
▷ Protected methods | 17 | 1.30% |
▷ Private methods | 385 | 29.37% |
Functions | 104 | |
▷ Named functions | 104 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/five-star-ratings-shortcode.png | 3.31KB | 2.29KB | ▼ 30.91% |