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: ▲1.55MB] [CPU: ▲24.19ms] Passed 4 tests
Server-side resources used by SweetHome3D-Embed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.61 | 40.48 ▼3.03 |
Dashboard /wp-admin | 5.28 ▲1.97 | 84.75 ▲26.67 |
Posts /wp-admin/edit.php | 5.35 ▲1.99 | 82.96 ▲35.77 |
Add New Post /wp-admin/post-new.php | 7.53 ▲1.64 | 133.93 ▲37.41 |
Media Library /wp-admin/upload.php | 5.28 ▲2.05 | 72.71 ▲37.34 |
Server storage [IO: ▲1.96MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 36 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_sh3dembed |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
sh3dembed_db_version |
Browser metrics Passed 4 tests
SweetHome3D-Embed: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲184 | 14.73 ▲0.36 | 14.41 ▲12.23 | 42.88 ▼6.31 |
Dashboard /wp-admin | 2,223 ▲35 | 4.86 ▼1.04 | 128.28 ▲14.70 | 42.85 ▼0.63 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.77 ▲0.71 | 49.64 ▲14.80 | 29.74 ▼8.04 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 23.20 ▲5.53 | 623.94 ▼66.27 | 109.76 ▲60.46 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.77 ▲0.57 | 120.84 ▲19.30 | 41.25 ▼5.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_sh3dembed
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- sh3dembed_db_version
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% 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 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/embed-sweethome3d/public/partials/sweethome3dembed-public-display.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/embed-sweethome3d/admin/partials/sweethome3dembed-admin-display-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/embed-sweethome3d/admin/partials/sweethome3dembed-admin-display.php:10
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/embed-sweethome3d/admin/partials/sweethome3dembed-admin-display-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/embed-sweethome3d/admin/partials/sweethome3dembed-admin-display-table.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The admin interface), #2 (Result of embed house in an article)
embed-sweethome3d/sweethome3dembed.php 92% from 13 tests
The main PHP file in "SweetHome3D-Embed" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("embed-sweethome3d.php" instead of "sweethome3dembed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin552 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 218 | 615 | 487 |
JavaScript | 10 | 11 | 169 | 55 |
CSS | 2 | 2 | 8 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 7 | 13.21% |
▷ Public methods | 47 | 88.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 11.32% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
4 PNG files occupy 0.82MB with 0.51MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/js/lib/navigationPanel.png | 4.63KB | 2.65KB | ▼ 42.79% |
assets/screenshot-1.png | 164.87KB | 48.44KB | ▼ 70.62% |
assets/screenshot-2.png | 674.37KB | 235.38KB | ▼ 65.10% |
public/js/lib/close.png | 0.58KB | 0.17KB | ▼ 70.69% |