Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.49MB] [CPU: ▲25.25ms] Passed 4 tests
This is a short check of server-side resources used by WPAchievements Free
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.51 ▲1.05 | 48.50 ▲5.04 |
Dashboard /wp-admin | 4.99 ▲1.69 | 84.55 ▲30.01 |
Posts /wp-admin/edit.php | 5.01 ▲1.66 | 79.11 ▲28.32 |
Add New Post /wp-admin/post-new.php | 7.47 ▲1.59 | 136.07 ▲37.62 |
Media Library /wp-admin/upload.php | 4.91 ▲1.68 | 73.52 ▲38.74 |
WPAchievements /wp-admin/edit.php?post_type=wpachievements | 4.96 | 73.65 |
FAQ /wp-admin/edit.php?post_type=wpachievements&page=wpachievements_faq | 4.91 | 83.23 |
Ranks /wp-admin/edit.php?post_type=wpachievements&page=wpachievements_ranks | 4.91 | 73.69 |
Reports /wp-admin/edit.php?post_type=wpachievements&page=wpachievements_reports | 4.97 | 73.24 |
Settings /wp-admin/edit.php?post_type=wpachievements&page=wpachievements_settings | 4.90 | 76.83 |
Server storage [IO: ▲4.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 233 new files
Database: no new tables, 35 new options
New WordPress options |
---|
wpachievements_appID |
widget_wpachievements_widget |
wpachievements_popup_notifications |
wpachievements_license_key |
wpachievements_rank_type |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_wpachievements_quests_widget |
wpachievements_ranks_data |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPAchievements Free
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,236 ▲2,465 | 13.95 ▼0.43 | 14.43 ▲12.67 | 44.44 ▼1.37 |
Dashboard /wp-admin | 4,475 ▲2,287 | 5.08 ▲0.22 | 105.92 ▲0.16 | 91.88 ▲46.88 |
Posts /wp-admin/edit.php | 4,285 ▲2,196 | 2.19 ▲0.18 | 40.61 ▼0.83 | 34.33 ▼2.54 |
Add New Post /wp-admin/post-new.php | 8,427 ▲6,894 | 25.94 ▲2.63 | 899.14 ▲186.01 | 45.06 ▼6.72 |
Media Library /wp-admin/upload.php | 3,578 ▲2,190 | 4.26 ▲0.03 | 98.16 ▼13.31 | 81.47 ▲33.25 |
WPAchievements /wp-admin/edit.php?post_type=wpachievements | 3,249 | 2.11 | 33.60 | 33.45 |
FAQ /wp-admin/edit.php?post_type=wpachievements&page=wpachievements_faq | 4,369 | 1.90 | 27.11 | 56.29 |
Ranks /wp-admin/edit.php?post_type=wpachievements&page=wpachievements_ranks | 3,313 | 3.68 | 60.18 | 55.30 |
Reports /wp-admin/edit.php?post_type=wpachievements&page=wpachievements_reports | 3,216 | 3.72 | 51.79 | 71.29 |
Settings /wp-admin/edit.php?post_type=wpachievements&page=wpachievements_settings | 3,344 | 2.04 | 30.75 | 31.32 |
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
These items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- The uninstall procedure has failed, leaving 34 options in the database
- db_upgraded
- wpachievements_sim_ach
- wpachievements_rank_status
- wpachievements_ptim
- can_compress_scripts
- wpachievements_appID
- widget_recent-posts
- wpachievements_license_key
- wpachievements_ach_page
- widget_wpachievements_achievements_widget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpachievements-free/includes/widgets/widget_my_rank.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpachievements-free/includes/admin/stats-widgets/class-wpachievements-admin-widget-ranks.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wpachievements_get_site_option() in wp-content/plugins/wpachievements-free/includes/social/facebook/setup.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpachievements-free/includes/widgets/widget_leaderboard.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpachievements-free/includes/class-wpachievements-notification.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpachievements-free/wpachievements.php:163
- > PHP Fatal error
Uncaught Error: Class 'WPAchievements_Admin_Stats' not found in wp-content/plugins/wpachievements-free/includes/admin/stats-widgets/class-wpachievements-admin-widget-latest-achievements.php:10
- > PHP Fatal error
Uncaught Error: Class 'WPAchievements_Admin_Stats' not found in wp-content/plugins/wpachievements-free/includes/admin/stats-widgets/class-wpachievements-admin-widget-latest-quests.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpachievements-free/includes/admin/stats-widgets/class-wpachievements-admin-widget-awarded-points.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpachievements-free/includes/widgets/widget_my_quests.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in wpachievements-free/assets to your readme.txt
wpachievements-free/wpachievements.php 85% from 13 tests
This is the main PHP file of "WPAchievements Free" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpachievements-free.php" instead of "wpachievements.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wpachievements-free/includes/social/facebook/fb_ca_chain_bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 29 | 3,327 | 7,638 | 15,532 |
PHP | 50 | 1,855 | 1,697 | 9,245 |
CSS | 27 | 474 | 284 | 3,272 |
SVG | 3 | 0 | 12 | 2,763 |
PO File | 1 | 982 | 1,297 | 2,617 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 22.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 185.00 |
Average method complexity | 4.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 1 | 2.63% |
Methods | 207 | |
▷ Static methods | 131 | 63.29% |
▷ Public methods | 186 | 89.86% |
▷ Protected methods | 1 | 0.48% |
▷ Private methods | 20 | 9.66% |
Functions | 74 | |
▷ Named functions | 74 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
90 PNG files occupy 0.38MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icons/thub_up_blue_stars_1.png | 3.65KB | 3.64KB | 0.13% |
assets/img/locked.png | 6.62KB | 4.56KB | ▼ 31.06% |
assets/img/forward_disabled.png | 1.33KB | 0.58KB | ▼ 56.42% |
assets/img/prog_bar_back.png | 2.90KB | 0.21KB | ▼ 92.94% |
assets/js/ui-darkness/css/ui-darkness/images/ui-bg_gloss-wave_25_333333_500x100.png | 3.73KB | 1.12KB | ▼ 69.92% |