Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.36ms] Passed 4 tests
Analyzing server-side resources used by iThemes Exchange - GIS Layout Add-on
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.99 ▼4.52 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.01 ▼1.60 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.68 ▲2.84 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.94 ▼5.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.60 ▲1.86 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by iThemes Exchange - GIS Layout Add-on
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.32 ▼1.05 | 1.72 ▼0.08 | 42.85 ▼0.92 |
Dashboard /wp-admin | 2,200 ▲12 | 5.80 ▼0.07 | 97.67 ▼19.55 | 40.19 ▼8.57 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▲0.01 | 39.51 ▲3.85 | 36.50 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.34 ▲0.74 | 619.35 ▼24.95 | 54.88 ▲14.47 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.20 ▼0.04 | 96.07 ▼5.70 | 41.36 ▼6.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/exchange-addon-gis-layout/init.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function it_exchange() in wp-content/plugins/exchange-addon-gis-layout/lib/templates/content-store/elements/description.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/exchange-addon-gis-layout/lib/templates/content-store/loops/product-info.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function it_exchange_product_has_feature() in wp-content/plugins/exchange-addon-gis-layout/lib/templates/content-store/elements/product.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/exchange-addon-gis-layout/exchange-addon-gis-layout.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/exchange-addon-gis-layout/lib/addon-settings.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/exchange-addon-gis-layout/lib/required-hooks.php:34
- > 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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: store, exchange add-on, layout, add-on, ithemes exchange...
exchange-addon-gis-layout/exchange-addon-gis-layout.php Passed 13 tests
"iThemes Exchange - GIS Layout Add-on" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
118 characters long description:
This add-on for iThemes Exchange creates a "Google Image Search (GIS)" inspired layout for products on the store page.
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
Everything looks great! No dangerous files found in this plugin555 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 127 | 176 | 401 |
CSS | 1 | 24 | 2 | 136 |
JavaScript | 1 | 7 | 0 | 18 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of 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.19 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/assets/gis-layout50px.png | 3.94KB | 0.59KB | ▼ 85.03% |