Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/purchase-orders-for-catablog/lib/ArrayToTextTable.class.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; ArrayToTextTable has a deprecated constructor
Server metrics [RAM: ▼1.81MB] [CPU: ▼51.29ms] Passed 4 tests
An overview of server-side resources used by Purchase Order for Catablog - Add Catablog Support for Making Purchase Orders
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 6.23 ▼33.98 |
Dashboard /wp-admin | 2.21 ▼1.14 | 6.01 ▼49.02 |
Posts /wp-admin/edit.php | 2.21 ▼1.15 | 7.55 ▼39.26 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.68 | 6.65 ▼82.89 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 5.67 ▼26.66 |
Catablog Cart Options /wp-admin/admin.php?page=catablog-cart | 2.21 | 7.44 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Purchase Order for Catablog - Add Catablog Support for Making Purchase Orders: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲35 | 13.59 ▼0.84 | 5.37 ▲3.49 | 42.57 ▲3.68 |
Dashboard /wp-admin | 2,205 ▲20 | 5.78 ▼0.07 | 97.78 ▼3.55 | 39.45 ▼4.61 |
Posts /wp-admin/edit.php | 2,088 ▼1 | 2.05 ▲0.05 | 38.67 ▼6.08 | 34.59 ▼9.72 |
Add New Post /wp-admin/post-new.php | 1,539 ▲2 | 18.44 ▼4.86 | 653.34 ▼17.60 | 58.46 ▼1.09 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.16 ▼0.07 | 94.86 ▼5.28 | 41.08 ▼5.02 |
Catablog Cart Options /wp-admin/admin.php?page=catablog-cart | 968 | 2.02 | 24.71 | 33.12 |
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
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/purchase-orders-for-catablog/lib/ArrayToTextTable.class.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; ArrayToTextTable has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=catablog-cart
- > Deprecated in wp-content/plugins/purchase-orders-for-catablog/lib/ArrayToTextTable.class.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; ArrayToTextTable has a deprecated constructor
- > GET request to /wp-admin/admin.php?page=catablog-cart
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the catablog-cart-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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 fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/purchase-orders-for-catablog/purchase-orders.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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: product, spanish, purchase, plugin, admin...
purchase-orders-for-catablog/purchase-orders.php 92% from 13 tests
This is the main PHP file of "Purchase Order for Catablog - Add Catablog Support for Making Purchase Orders" version 0.3, 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: It is recommended to name the main PHP file as the plugin slug ("purchase-orders-for-catablog.php" instead of "purchase-orders.php")
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
No dangerous file extensions were detected938 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 271 | 194 | 827 |
PO File | 1 | 30 | 60 | 80 |
CSS | 1 | 9 | 0 | 31 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 30.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 17 | 35.42% |
▷ Public methods | 39 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 18.75% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin