Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.22ms] Passed 4 tests
A check of server-side resources used by Upela Connector for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.73 ▲0.11 |
Dashboard /wp-admin | 3.33 ▲0.02 | 53.61 ▼2.26 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.58 ▼1.28 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.05 ▼13.45 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.67 ▲2.72 |
Settings /wp-admin/admin.php?page=upela-wordpress | 3.35 | 32.43 |
Set Up /wp-admin/admin.php?page=set-up | 3.21 | 33.97 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 52 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_upela_connector |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Upela Connector for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.65 ▼0.72 | 1.89 ▲0.25 | 43.32 ▲2.75 |
Dashboard /wp-admin | 2,220 ▲29 | 5.88 ▼0.16 | 100.76 ▼0.28 | 71.88 ▲25.83 |
Posts /wp-admin/edit.php | 2,118 ▲26 | 2.12 ▲0.12 | 33.53 ▼8.16 | 34.28 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 17.63 ▼5.51 | 737.65 ▲116.95 | 58.17 ▲5.82 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.17 ▼0.22 | 97.36 ▼2.04 | 77.47 ▲34.15 |
Settings /wp-admin/admin.php?page=upela-wordpress | 2,253 | 2.02 | 27.72 | 39.52 |
Set Up /wp-admin/admin.php?page=set-up | 825 | 2.13 | 24.84 | 28.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_upela_connector
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=upela-wordpress
- > Notice in wp-content/plugins/upela-e-commerce-connector/model/Software.class.php+17
Trying to access array offset on value of type null
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
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/upela-e-commerce-connector/view/status.php
- > /wp-content/plugins/upela-e-commerce-connector/view/error.php
- > /wp-content/plugins/upela-e-commerce-connector/view/statusSuccess.php
- > /wp-content/plugins/upela-e-commerce-connector/view/trackingSuccess.php
- 37× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'PLUGIN_PATH_UPELAWORDPRESSfunctions/functions.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/upela-e-commerce-connector/control/controlAdmin.php on line 5
- > PHP Notice
Undefined variable: user in wp-content/plugins/upela-e-commerce-connector/view/store.php on line 5
- > PHP Warning
include_once(PLUGIN_PATH_UPELAWORDPRESSmodel/User.class.php): failed to open stream: No such file or directory in wp-content/plugins/upela-e-commerce-connector/control/controlAdmin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/upela-e-commerce-connector/view/upela_admin.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function getStatus() on null in wp-content/plugins/upela-e-commerce-connector/view/statusCode.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/upela-e-commerce-connector/view/setUp.php:2
- > PHP Notice
Undefined index: order in wp-content/plugins/upela-e-commerce-connector/view/status.php on line 2
- > PHP Warning
include_once(): Failed opening 'PLUGIN_PATH_UPELAWORDPRESSmodel/Software.class.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/upela-e-commerce-connector/control/controlAdmin.php on line 4
- > PHP Warning
Use of undefined constant PLUGIN_PATH_UPELAWORDPRESS - assumed 'PLUGIN_PATH_UPELAWORDPRESS' (this will throw an Error in a future version of PHP) in wp-content/plugins/upela-e-commerce-connector/control/controlAdmin.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'User' not found in wp-content/plugins/upela-e-commerce-connector/control/controlAdmin.php:7
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
upela-e-commerce-connector/controler.php 92% from 13 tests
The entry point to "Upela Connector for WordPress" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("upela-e-commerce-connector.php" instead of "controler.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin4,443 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 581 | 287 | 4,312 |
PO File | 1 | 38 | 53 | 93 |
CSS | 2 | 5 | 11 | 37 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 36.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 151 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 99 | 65.56% |
▷ Protected methods | 52 | 34.44% |
▷ Private methods | 0 | 0.00% |
Functions | 87 | |
▷ Named functions | 87 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.49MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo.png | 0.64KB | 0.69KB | 0.00% |
img/image02.png | 145.70KB | 83.69KB | ▼ 42.56% |
img/image03.png | 206.86KB | 127.89KB | ▼ 38.18% |
img/image01.png | 147.64KB | 83.72KB | ▼ 43.29% |
img/icon.png | 0.64KB | 0.69KB | 0.00% |