Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.59ms] Passed 4 tests
Server-side resources used by Synced Daily Deals
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.53 ▼10.15 |
Dashboard /wp-admin | 3.41 ▲0.06 | 47.72 ▼15.81 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 47.46 ▼3.60 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 95.16 ▼0.79 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 40.90 ▲2.44 |
Add New /wp-admin/post-new.php?post_type=product | 3.46 | 45.53 |
Online Offers /wp-admin/admin.php?page=wp_synced_offers | 3.30 | 36.00 |
All Products /wp-admin/edit.php?post_type=product | 3.37 | 35.70 |
Categories /wp-admin/admin.php?page=wp_synced_categories | 3.30 | 33.54 |
Synced /wp-admin/admin.php?page=wp-synced-menu | 3.33 | 34.33 |
Merchants /wp-admin/admin.php?page=wp_synced_merchants | 3.30 | 30.14 |
Server storage [IO: ▲0.11MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: 6 new tables, 7 new options
New tables |
---|
wp_synced_programs |
wp_synced_countries |
wp_synced_settings |
wp_synced_offers |
wp_synced_merchants |
wp_synced_categories |
New WordPress options |
---|
_synced_admin_notice |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Synced Daily Deals
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲101 | 14.24 ▼0.11 | 1.51 ▼0.25 | 38.81 ▼2.92 |
Dashboard /wp-admin | 2,271 ▲97 | 5.56 ▼0.02 | 80.50 ▼8.92 | 72.23 ▲29.10 |
Posts /wp-admin/edit.php | 2,176 ▲76 | 2.00 ▲0.04 | 39.80 ▲1.39 | 34.66 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,752 ▲224 | 24.56 ▲1.39 | 618.18 ▼67.03 | 42.23 ▼10.62 |
Media Library /wp-admin/upload.php | 1,470 ▲73 | 4.12 ▲0.01 | 100.33 ▼2.29 | 61.46 ▲14.12 |
Add New /wp-admin/post-new.php?post_type=product | 2,487 | 7.73 | 176.56 | 113.93 |
Online Offers /wp-admin/admin.php?page=wp_synced_offers | 972 | 2.18 | 22.72 | 25.10 |
All Products /wp-admin/edit.php?post_type=product | 1,180 | 1.91 | 29.82 | 29.84 |
Categories /wp-admin/admin.php?page=wp_synced_categories | 866 | 2.00 | 26.94 | 26.11 |
Synced /wp-admin/admin.php?page=wp-synced-menu | 1,289 | 2.00 | 24.32 | 30.62 |
Merchants /wp-admin/admin.php?page=wp_synced_merchants | 919 | 2.01 | 22.67 | 23.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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
- This plugin does not fully uninstall, leaving 6 tables in the database
- wp_synced_merchants
- wp_synced_settings
- wp_synced_programs
- wp_synced_categories
- wp_synced_offers
- wp_synced_countries
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- _synced_admin_notice
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/synced-daily-deals/views/admin/wp_synced_menu.php
- > /wp-content/plugins/synced-daily-deals/views/admin/wp_synced_categories_edit.php
- > /wp-content/plugins/synced-daily-deals/views/admin/wp_synced_categories_menu.php
- 26× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to get property 'data' of non-object in wp-content/plugins/synced-daily-deals/views/admin/wp_synced_categories_menu.php on line 38
- > PHP Notice
Trying to get property 'input_search' of non-object in wp-content/plugins/synced-daily-deals/views/admin/wp_synced_online_offers_menu.php on line 16
- > PHP Notice
Trying to get property 'input_search' of non-object in wp-content/plugins/synced-daily-deals/views/admin/wp_synced_online_offers_menu.php on line 17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/synced-daily-deals/views/admin/wp_synced_online_offers_menu.php on line 16
- > PHP Notice
Trying to get property 'input_search' of non-object in wp-content/plugins/synced-daily-deals/views/admin/wp_synced_online_offers_menu.php on line 13
- > PHP Notice
Undefined variable: z in wp-content/plugins/synced-daily-deals/views/admin/wp_synced_merchants_menu.php on line 14
- > PHP Notice
Undefined variable: z in wp-content/plugins/synced-daily-deals/views/admin/wp_synced_online_offers_menu.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function paginate_links() in wp-content/plugins/synced-daily-deals/views/admin/wp_synced_merchants_menu.php:21
- > PHP Notice
Undefined variable: z in wp-content/plugins/synced-daily-deals/views/admin/wp_synced_merchants_menu.php on line 20
- > PHP Notice
Trying to get property 'input_search' of non-object in wp-content/plugins/synced-daily-deals/views/admin/wp_synced_merchants_menu.php on line 14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
- Tested up to: Version format is invalid
synced-daily-deals/wpsynced.php 85% from 13 tests
This is the main PHP file of "Synced Daily Deals" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("synced-daily-deals.php" instead of "wpsynced.php")
- Requires at least: The required version number must match the one declared in readme.txt ("4.3" instead of "3.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,900 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 369 | 70 | 1,326 |
CSS | 1 | 61 | 21 | 539 |
XML | 2 | 0 | 0 | 21 |
HTML | 1 | 9 | 0 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 11.76% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/144.png | 3.69KB | 0.33KB | ▼ 91.00% |