Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.05ms] Passed 4 tests
This is a short check of server-side resources used by SourceKnowledge Shopping Ads
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.89 ▼2.27 |
Dashboard /wp-admin | 3.34 ▼0.01 | 50.44 ▼18.97 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.89 ▼3.47 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.57 ▼11.50 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.35 ▲2.51 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
sourceknowledge_config_needs_revision |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for SourceKnowledge Shopping Ads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.28 ▼0.04 | 1.52 ▼0.18 | 41.40 ▼3.60 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.02 | 92.15 ▼5.09 | 42.59 ▲0.05 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.00 ▼0.02 | 39.26 ▼0.55 | 34.25 ▼4.54 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.96 ▼0.78 | 617.63 ▼92.29 | 54.21 ▼4.16 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.21 ▲0.04 | 96.39 ▼7.20 | 40.91 ▼2.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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 no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sourceknowledge-shopping-ads/admin/partials/sokno-shopping-ads-admin-display.php:17
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/sourceknowledge-shopping-ads/includes/class-sokno-shopping-ads-integration.php:22
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sourceknowledge-shopping-ads/admin/partials/sokno-shopping-ads-admin-display.php on line 16
- > PHP Notice
Undefined variable: params in wp-content/plugins/sourceknowledge-shopping-ads/admin/partials/sokno-shopping-ads-admin-display.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sourceknowledge-shopping-ads/admin/partials/sokno-shopping-ads-admin-notification.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
10 plugin tags: sourceknowledge, sell, checkout, cart, shop...
sourceknowledge-shopping-ads/sourceknowledge-shopping-ads.php 92% from 13 tests
The main PHP file in "SourceKnowledge Shopping Ads" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,018 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 302 | 1,354 | 978 |
JavaScript | 2 | 7 | 19 | 40 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 31 | 32.63% |
▷ Public methods | 69 | 72.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 26 | 27.37% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 44 | |
▷ Global constants | 1 | 2.27% |
▷ Class constants | 43 | 97.73% |
▷ Public constants | 43 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin