Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲3.94MB] [CPU: ▲27.81ms] Passed 4 tests
Server-side resources used by Content Egg
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.18 ▲3.72 | 69.59 ▲32.28 |
Dashboard /wp-admin | 7.33 ▲4.02 | 78.23 ▲26.50 |
Posts /wp-admin/edit.php | 7.38 ▲4.02 | 70.57 ▲17.52 |
Add New Post /wp-admin/post-new.php | 9.91 ▲4.02 | 131.82 ▲34.95 |
Media Library /wp-admin/upload.php | 7.25 ▲4.02 | 71.95 ▲35.61 |
Products /wp-admin/admin.php?page=content-egg-product | 7.33 | 61.64 |
/wp-admin/options.php?page=content-egg-modules--RssFetcher | 7.62 | 67.17 |
/wp-admin/options.php?page=content-egg-modules--Pixabay | 7.62 | 64.36 |
Add autoblogging /wp-admin/admin.php?page=content-egg-autoblog-edit | 7.41 | 61.07 |
/wp-admin/options.php?page=content-egg-modules--AffilinetCoupons | 7.62 | 66.28 |
Modules /wp-admin/admin.php?page=content-egg-modules | 7.26 | 60.05 |
/wp-admin/options.php?page=content-egg-modules--Youtube | 7.62 | 64.98 |
Autoblogging /wp-admin/admin.php?page=content-egg-autoblog | 7.48 | 62.05 |
/wp-admin/options.php?page=content-egg-modules--GdeSlon | 7.62 | 66.07 |
Fill /wp-admin/admin.php?page=content-egg-prefill | 7.28 | 62.29 |
Server storage [IO: ▲3.23MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 449 new files
Database: 4 new tables, 28 new options
New tables |
---|
wp_cegg_price_alert |
wp_cegg_product |
wp_cegg_price_history |
wp_cegg_autoblog |
New WordPress options |
---|
widget_cegg_price_movers |
content-egg_GdeSlon |
content-egg_GoogleImages |
content-egg_RelatedKeywords |
content-egg_Feed__1 |
content-egg_AdmitadProducts |
widget_cegg_product_search |
content-egg_ae_integration |
content-egg_AffilinetCoupons |
content-egg_RssFetcher |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Content Egg
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,012 ▲251 | 13.78 ▼0.62 | 6.54 ▲4.84 | 49.10 ▲5.13 |
Dashboard /wp-admin | 2,318 ▲118 | 5.85 ▲0.98 | 98.91 ▼3.56 | 37.20 ▼5.79 |
Posts /wp-admin/edit.php | 2,203 ▲103 | 2.13 ▲0.12 | 42.08 ▼0.50 | 34.61 ▲1.55 |
Add New Post /wp-admin/post-new.php | 1,581 ▲50 | 22.41 ▼0.83 | 663.44 ▲0.18 | 61.27 ▲9.45 |
Media Library /wp-admin/upload.php | 1,504 ▲107 | 4.27 ▼0.03 | 98.36 ▼3.83 | 42.40 ▲1.29 |
Products /wp-admin/admin.php?page=content-egg-product | 1,257 | 1.80 | 26.94 | 42.25 |
/wp-admin/options.php?page=content-egg-modules--RssFetcher | 1,126 | 1.89 | 29.87 | 40.17 |
/wp-admin/options.php?page=content-egg-modules--Pixabay | 1,379 | 2.12 | 26.35 | 32.00 |
Add autoblogging /wp-admin/admin.php?page=content-egg-autoblog-edit | 1,890 | 2.20 | 38.86 | 48.70 |
/wp-admin/options.php?page=content-egg-modules--AffilinetCoupons | 1,337 | 2.14 | 28.15 | 34.91 |
Modules /wp-admin/admin.php?page=content-egg-modules | 1,069 | 1.76 | 26.23 | 34.45 |
/wp-admin/options.php?page=content-egg-modules--Youtube | 1,225 | 2.12 | 28.88 | 34.23 |
Autoblogging /wp-admin/admin.php?page=content-egg-autoblog | 1,222 | 1.90 | 29.12 | 34.62 |
/wp-admin/options.php?page=content-egg-modules--GdeSlon | 1,304 | 2.24 | 27.04 | 33.53 |
Fill /wp-admin/admin.php?page=content-egg-prefill | 1,416 | 2.03 | 33.75 | 35.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_cegg_price_alert
- wp_cegg_product
- wp_cegg_price_history
- wp_cegg_autoblog
- The uninstall procedure has failed, leaving 27 options in the database
- content-egg_Offer
- content-egg_Coupon
- content-egg_SkimlinksCoupons
- content-egg_GdeSlon
- content-egg_RssFetcher
- content-egg_ae_integration
- content-egg_GoogleImages
- content-egg_CjLinks
- content-egg_Freebase
- widget_cegg_price_movers
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/content-egg/templates/wdgt_price_movers_list.php
- > /wp-content/plugins/content-egg/content-egg.php
- 28× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/content-egg/templates/block_offers_tile.php:9
- > PHP Fatal error
Uncaught Error: Class 'ContentEgg\\application\\helpers\\TemplateHelper' not found in wp-content/plugins/content-egg/templates/block_product_images_row.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/content-egg/templates/block_price_statistics.php:10
- > PHP Fatal error
Uncaught Error: Class 'ContentEgg\\application\\helpers\\TemplateHelper' not found in wp-content/plugins/content-egg/templates/block_top_listing.php:11
- > PHP Fatal error
Uncaught Error: Class 'ContentEgg\\application\\helpers\\TemplateHelper' not found in wp-content/plugins/content-egg/templates/block_offers_list_no_price.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/content-egg/templates/block_offers_list_groups.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/content-egg/templates/block_price_alert.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/content-egg/templates/block_offers_list.php:9
- > PHP Notice
Undefined variable: items in wp-content/plugins/content-egg/templates/wdgt_price_movers_list.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/content-egg/templates/block_popup_compare.php:11
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (44 tag instead of maximum 10); only the first 5 tags are used in your directory listing
content-egg/content-egg.php Passed 13 tests
The main file in "Content Egg" v. 6.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
52 characters long description:
All in one solution for creating affiliate websites.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin44,486 lines of code in 327 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 287 | 5,382 | 3,391 | 31,544 |
CSS | 9 | 283 | 54 | 6,617 |
JavaScript | 23 | 1,133 | 888 | 3,967 |
PO File | 5 | 825 | 1,999 | 1,873 |
SVG | 1 | 0 | 0 | 288 |
Markdown | 1 | 66 | 0 | 168 |
XML | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 290.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 42 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 188 | |
▷ Abstract classes | 16 | 8.51% |
▷ Concrete classes | 172 | 91.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,387 | |
▷ Static methods | 480 | 34.61% |
▷ Public methods | 1,214 | 87.53% |
▷ Protected methods | 49 | 3.53% |
▷ Private methods | 124 | 8.94% |
Functions | 11 | |
▷ Named functions | 4 | 36.36% |
▷ Anonymous functions | 7 | 63.64% |
Constants | 139 | |
▷ Global constants | 8 | 5.76% |
▷ Class constants | 131 | 94.24% |
▷ Public constants | 131 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
52 PNG files occupy 0.19MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
res/logos/amazon-ca.png | 4.47KB | 3.13KB | ▼ 30.07% |
res/css/images/ui-icons_2e83ff_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
res/css/images/ui-icons_cd0a0a_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
res/img/logo.png | 6.38KB | 3.23KB | ▼ 49.30% |
res/logos/amazon-nl.png | 4.47KB | 3.13KB | ▼ 30.07% |