Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.72ms] Passed 4 tests
Analyzing server-side resources used by LinkGreen Site Integrations
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.62 ▼6.58 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.60 ▲0.39 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 52.03 ▲1.71 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 95.84 ▼2.31 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.49 ▲1.64 |
Server storage [IO: ▲2.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LinkGreen Site Integrations
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲237 | 14.75 ▲0.39 | 15.68 ▲13.60 | 38.77 ▼0.78 |
Dashboard /wp-admin | 2,229 ▲38 | 5.85 ▼0.03 | 94.52 ▼5.04 | 40.37 ▼3.89 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.00 ▼0.01 | 39.55 ▲3.06 | 34.23 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,531 ▼13 | 23.20 ▲4.78 | 601.07 ▼49.50 | 43.39 ▼9.48 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.17 ▲0.01 | 94.00 ▼5.71 | 39.03 ▼5.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
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
Good news, no errors were detected
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/linkgreen-site-integrations/inc/admin/sidebar.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/linkgreen-site-integrations/inc/decode-api.php:3
- > PHP Notice
Undefined variable: plugin_url in wp-content/plugins/linkgreen-site-integrations/inc/admin/sidebar.php on line 9
- > PHP Notice
Undefined variable: linkgreen_site_api in wp-content/plugins/linkgreen-site-integrations/inc/register-key.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/linkgreen-site-integrations/inc/admin/main.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/linkgreen-site-integrations/inc/main.php:11
- > PHP Notice
Undefined variable: version_num in wp-content/plugins/linkgreen-site-integrations/inc/admin/sidebar.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: api, carousel, linkgreen, link green
linkgreen-site-integrations/linkgreen-site-integrations.php Passed 13 tests
The main PHP file in "LinkGreen Site Integrations" ver. 1.4.4 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
Display current product lists and more from LinkGreen.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin5,641 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 1 | 1 | 2,817 |
PHP | 22 | 196 | 19 | 989 |
CSS | 3 | 68 | 33 | 921 |
Sass | 10 | 122 | 1 | 808 |
JavaScript | 4 | 9 | 40 | 106 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 PNG files occupy 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/linkgreen-iphone.png | 171.25KB | 77.48KB | ▼ 54.76% |
img/linkgreen-icon-30x.png | 3.39KB | 0.98KB | ▼ 71.07% |
img/linkgreen-wholesale-platform-for-buyers-and-sellers.png | 11.00KB | 5.55KB | ▼ 49.58% |
img/linkgreen-white-logo.png | 5.10KB | 2.98KB | ▼ 41.58% |