Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.96MB] [CPU: ▲0.23ms] Passed 4 tests
An overview of server-side resources used by Moredeal - Monetize your WordPress content
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.37 ▲0.91 | 43.25 ▼0.29 |
Dashboard /wp-admin | 4.27 ▲0.97 | 55.55 ▲2.08 |
Posts /wp-admin/edit.php | 4.33 ▲0.97 | 52.71 ▲1.19 |
Add New Post /wp-admin/post-new.php | 7.17 ▲1.28 | 96.93 ▼2.08 |
Media Library /wp-admin/upload.php | 4.20 ▲0.97 | 45.40 ▲7.92 |
Product /wp-admin/admin.php?page=moredeal-product | 4.79 | 49.57 |
HotKeywords /wp-admin/admin.php?page=moredeal-hotKeywords-config | 4.46 | 38.85 |
Templates /wp-admin/admin.php?page=moredeal-template-config | 4.49 | 41.64 |
Setting /wp-admin/admin.php?page=moredeal | 4.48 | 38.55 |
License /wp-admin/admin.php?page=moredeal-license | 4.46 | 41.07 |
Server storage [IO: ▲3.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 161 new files
Database: 1 new table, 14 new options
New tables |
---|
wp_moredeal_product |
New WordPress options |
---|
can_compress_scripts |
moredeal_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
moredeal_modules_AmazonNoApi |
widget_recent-comments |
theysaidso_admin_options |
moredeal_db_version |
moredeal_modules_Amazon |
... |
Browser metrics Passed 4 tests
Moredeal - Monetize your WordPress content: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 14.34 ▼0.28 | 1.94 ▲0.10 | 40.13 ▼2.40 |
Dashboard /wp-admin | 2,230 ▲50 | 5.56 ▼0.10 | 83.23 ▼6.77 | 71.19 ▲31.47 |
Posts /wp-admin/edit.php | 2,144 ▲41 | 1.98 ▲0.01 | 35.21 ▼1.24 | 34.17 ▼4.75 |
Add New Post /wp-admin/post-new.php | 2,299 ▲773 | 26.85 ▲3.18 | 827.44 ▲144.17 | 83.19 ▲27.48 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.20 ▼0.01 | 101.83 ▼8.27 | 76.80 ▲27.63 |
Product /wp-admin/admin.php?page=moredeal-product | 1,138 | 2.04 | 26.21 | 30.39 |
HotKeywords /wp-admin/admin.php?page=moredeal-hotKeywords-config | 972 | 1.85 | 34.12 | 40.75 |
Templates /wp-admin/admin.php?page=moredeal-template-config | 3,045 | 3.42 | 119.98 | 36.86 |
Setting /wp-admin/admin.php?page=moredeal | 1,554 | 2.59 | 52.46 | 36.20 |
License /wp-admin/admin.php?page=moredeal-license | 905 | 1.94 | 31.19 | 31.07 |
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
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_moredeal_product
- The uninstall procedure has failed, leaving 13 options in the database
- moredeal_template_options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- moredeal_hot_keywords_options
- moredeal_modules_Amazon
- moredeal_options
- moredeal_modules_AmazonNoApi
- widget_theysaidso_widget
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/moredeal/moredeal.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=moredeal-product
- > Network (severe)
wp-content/plugins/moredeal/res/img/moredeal_waiting.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=moredeal-product
- > Network (severe)
wp-content/plugins/moredeal/res/js/jquery.blockUI.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Tags: Too many tags (31 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add descriptions for screenshots #1, #10, #2, #3, #4, #5, #6 in moredeal/assets to your readme.txt
moredeal/moredeal.php 92% from 13 tests
The main PHP file in "Moredeal - Monetize your WordPress content" ver. 2.0.25 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 318 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin24,077 lines of code in 116 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 68 | 1,707 | 3,224 | 9,941 |
CSS | 13 | 355 | 32 | 7,191 |
JavaScript | 29 | 971 | 862 | 5,515 |
PO File | 2 | 527 | 20 | 1,058 |
SVG | 3 | 0 | 0 | 290 |
Vuejs Component | 1 | 5 | 0 | 82 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 24.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 231.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 10 | 19.61% |
▷ Concrete classes | 41 | 80.39% |
▷ Final classes | 0 | 0.00% |
Methods | 625 | |
▷ Static methods | 261 | 41.76% |
▷ Public methods | 557 | 89.12% |
▷ Protected methods | 26 | 4.16% |
▷ Private methods | 42 | 6.72% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 56 | |
▷ Global constants | 5 | 8.93% |
▷ Class constants | 51 | 91.07% |
▷ Public constants | 51 | 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
29 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
res/logos/amazon-it.png | 4.47KB | 3.13KB | ▼ 30.07% |
res/logos/amazon-es.png | 4.47KB | 3.13KB | ▼ 30.07% |
res/css/images/ui-bg_glass_75_dadada_1x400.png | 0.32KB | 0.16KB | ▼ 50.46% |
res/colorbox/images/controls.png | 1.23KB | 1.28KB | 0.00% |
res/logos/aliexpress-com.png | 5.75KB | 3.08KB | ▼ 46.47% |