Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.51MB] [CPU: ▼5.56ms] Passed 4 tests
An overview of server-side resources used by Cargus
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.53 | 35.41 ▼5.77 |
Dashboard /wp-admin | 3.87 ▲0.52 | 48.34 ▼11.57 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 52.64 ▲4.46 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 85.04 ▼9.34 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 37.32 ▲5.15 |
Server storage [IO: ▲14.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 81 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cargus
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.69 ▲0.31 | 1.74 ▼0.04 | 37.49 ▼6.13 |
Dashboard /wp-admin | 2,198 ▲18 | 5.63 ▲0.02 | 81.98 ▼8.90 | 38.02 ▼3.98 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▲0.01 | 37.87 ▲2.70 | 31.02 ▼6.17 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.12 ▼0.02 | 675.04 ▲6.95 | 60.47 ▼4.67 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.17 ▼0.03 | 98.80 ▲2.50 | 41.70 ▼3.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cargus/admin/class-cargus-cache.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cargus/admin/class-cargus-cron.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
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 (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
cargus/cargus.php Passed 13 tests
This is the main PHP file of "Cargus" version 1.3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
44 characters long description:
Metoda de livrare Cargus pentru WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected324,623 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 313,772 |
PHP | 18 | 833 | 1,784 | 4,039 |
SVG | 15 | 2 | 2 | 2,920 |
JavaScript | 10 | 257 | 183 | 1,965 |
CSS | 8 | 301 | 73 | 1,927 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.77 |
Average class complexity | 68.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 373.00 |
Average method complexity | 5.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 172 | |
▷ Static methods | 3 | 1.74% |
▷ Public methods | 155 | 90.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 9.88% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
11 PNG files occupy 0.16MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/email_cargus_banner_mid_gpay.png | 3.99KB | 2.34KB | ▼ 41.30% |
public/images/logo.png | 22.83KB | 7.83KB | ▼ 65.71% |
public/css/Leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
public/images/email_cargus_banner_mid.png | 13.95KB | 6.72KB | ▼ 51.82% |
public/images/email_cargus_banner_mid_appstore.png | 4.08KB | 2.32KB | ▼ 43.30% |