Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/products-table-compare/ProductsTableCompare_Plugin.php+30
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.66ms] Passed 4 tests
A check of server-side resources used by Products Table Compare
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.45 ▼0.15 |
Dashboard /wp-admin | 3.41 ▲0.11 | 43.96 ▼4.94 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 47.03 ▼0.49 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 100.49 ▲13.42 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 33.54 ▼1.04 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 11 new options
New WordPress options |
---|
ProductsTableCompare_Plugin_CanDoSomething |
can_compress_scripts |
ProductsTableCompare_Plugin_AmAwesome |
widget_recent-posts |
ProductsTableCompare_Plugin_ATextInput |
ProductsTableCompare_Plugin__installed |
ProductsTableCompare_Plugin__version |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Products Table Compare
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.22 ▼1.15 | 1.63 ▼0.16 | 40.94 ▼6.47 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲0.88 | 105.37 ▼13.28 | 41.26 ▼3.66 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.01 ▲0.04 | 40.02 ▲3.55 | 36.06 ▲2.20 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.38 ▲0.24 | 613.08 ▼28.49 | 76.07 ▲30.74 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.05 | 95.64 ▲0.72 | 41.71 ▼0.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 11 options in the database
- db_upgraded
- ProductsTableCompare_Plugin__version
- ProductsTableCompare_Plugin_CanDoSomething
- widget_recent-comments
- ProductsTableCompare_Plugin_AmAwesome
- can_compress_scripts
- widget_theysaidso_widget
- ProductsTableCompare_Plugin_ATextInput
- theysaidso_admin_options
- ProductsTableCompare_Plugin__installed
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/products-table-compare/products-table-compare.php:56
- > 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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: filter, compare, products, table, product-info...
products-table-compare/products-table-compare.php Passed 13 tests
Analyzing the main PHP file in "Products Table Compare" version 0.5
27 characters long description:
compare products with table
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
Success! There were no dangerous files found in this plugin831 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 168 | 266 | 623 |
JavaScript | 1 | 39 | 0 | 176 |
CSS | 1 | 5 | 0 | 32 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 2 | 28.57% |
▷ Concrete classes | 5 | 71.43% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 61.64% |
▷ Protected methods | 28 | 38.36% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin