Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲7.13MB] [CPU: ▲44.96ms] 50% from 4 tests
Analyzing server-side resources used by Simple Giveaways - Grow your business, email lists and traffic with contests
Please have a look at the following items
- RAM: You should keep total memory usage under 10MB (currently 10.83MB on /wp-admin/admin.php?page=freemius)
- Extra RAM: Extra memory usage must be kept under 5MB (currently 7.13MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.90 ▲6.44 | 76.30 ▲26.61 |
Dashboard /wp-admin | 10.67 ▲7.36 | 93.43 ▲41.74 |
Posts /wp-admin/edit.php | 10.72 ▲7.36 | 102.00 ▲56.74 |
Add New Post /wp-admin/post-new.php | 13.41 ▲7.52 | 141.11 ▲54.75 |
Media Library /wp-admin/upload.php | 10.59 ▲7.36 | 115.04 ▲80.57 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 10.83 | 76.23 |
Server storage [IO: ▲14.27MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 497 new files
Database: 3 new tables, 13 new options
New tables |
---|
wp_giveasap_actions |
wp_giveasap_entries |
wp_giveasap_meta |
New WordPress options |
---|
theysaidso_admin_options |
fs_active_plugins |
widget_recent-comments |
db_upgraded |
fs_debug_mode |
sg_about_page_was_read |
can_compress_scripts |
widget_giveasap_widget |
widget_theysaidso_widget |
giveasap_settings |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Giveaways - Grow your business, email lists and traffic with contests
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,024 ▲277 | 14.18 ▼0.17 | 1.67 ▲0.01 | 27.63 ▼18.12 |
Dashboard /wp-admin | 2,429 ▲252 | 5.57 ▼0.02 | 101.47 ▲8.95 | 50.62 ▲7.74 |
Posts /wp-admin/edit.php | 2,218 ▲118 | 2.03 ▲0.01 | 39.03 ▲2.22 | 36.14 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,675 ▲139 | 23.14 ▼0.00 | 697.66 ▲7.24 | 54.90 ▼12.39 |
Media Library /wp-admin/upload.php | 1,517 ▲117 | 4.11 ▼0.06 | 111.96 ▲12.06 | 48.77 ▲6.75 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,154 | 1.70 | 25.83 | 26.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% 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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/giveasap/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie tables were found after uninstall: 3 tables
- wp_giveasap_meta
- wp_giveasap_entries
- wp_giveasap_actions
- This plugin did not uninstall successfully, leaving 13 options in the database
- giveasap_settings
- widget_recent-posts
- fs_accounts
- fs_active_plugins
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- giveasap_version
- sg_about_page_was_read
- ...
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 everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 49× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Simple_Giveaways\\GA_Integration' not found in wp-content/plugins/giveasap/includes/integrations/class-sg-math-captcha.php:8
- > PHP Fatal error
Uncaught Error: Class 'Simple_Giveaways\\SG_Extra_Action' not found in wp-content/plugins/giveasap/includes/extra-actions/class-sg-action-comment.php:8
- > PHP Fatal error
Uncaught Error: Class 'Simple_Giveaways\\SG_Email' not found in wp-content/plugins/giveasap/includes/emails/class-sg-email-referrer.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/giveasap/admin/views/reports/reports.php:9
- > PHP Fatal error
Uncaught Error: Class 'AutomatorWP_Integration_Trigger' not found in wp-content/plugins/giveasap/includes/integrations/abstracts/class-automatorwp-base-trigger.php:11
- > PHP Notice
Undefined variable: display in wp-content/plugins/giveasap/public/templates/template1.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Simple_Giveaways\\SG_Report' not found in wp-content/plugins/giveasap/admin/reports/class-sg-report-actions.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function giveasap_get_giveaways() in wp-content/plugins/giveasap/admin/views/customizer/email.php:6
- > PHP Fatal error
Uncaught Error: Class 'Simple_Giveaways\\SG_Extra_Action' not found in wp-content/plugins/giveasap/includes/extra-actions/class-sg-action-image.php:8
- > PHP Fatal error
Uncaught Error: Class 'Simple_Giveaways\\SG_Giveaway' not found in wp-content/plugins/giveasap/includes/class-sg-giveaway-limited.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
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
7 plugin tags: sweepstake, sweepstakes, giveaway, giveaways, contest...
giveasap/giveasap.php Passed 13 tests
The main PHP file in "Simple Giveaways - Grow your business, email lists and traffic with contests" ver. 2.47.1 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
Create beautiful giveaways and grow your email list and business.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected113,940 lines of code in 359 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 239 | 12,628 | 24,237 | 52,218 |
CSS | 26 | 9,030 | 484 | 32,878 |
JavaScript | 34 | 1,340 | 628 | 8,945 |
SVG | 19 | 4 | 1 | 8,603 |
Sass | 38 | 1,142 | 35 | 8,443 |
PO File | 3 | 1,184 | 1,570 | 2,853 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 37.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 160 | |
▷ Abstract classes | 7 | 4.38% |
▷ Concrete classes | 153 | 95.62% |
▷ Final classes | 0 | 0.00% |
Methods | 1,988 | |
▷ Static methods | 223 | 11.22% |
▷ Public methods | 1,560 | 78.47% |
▷ Protected methods | 32 | 1.61% |
▷ Private methods | 396 | 19.92% |
Functions | 336 | |
▷ Named functions | 334 | 99.40% |
▷ Anonymous functions | 2 | 0.60% |
Constants | 152 | |
▷ Global constants | 104 | 68.42% |
▷ Class constants | 48 | 31.58% |
▷ Public constants | 48 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
51 PNG files occupy 0.69MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/vendor/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
admin/documentation/images/schedule.png | 14.46KB | 14.78KB | 0.00% |
assets/dist/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/css/vendor/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |