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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.22ms] Passed 4 tests
Server-side resources used by Amilia Store
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.30 ▼2.47 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.06 ▼6.25 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.51 ▲1.77 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 95.19 ▲2.09 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 38.07 ▲3.79 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Amilia Store
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲117 | 13.52 ▼0.70 | 2.34 ▲0.32 | 41.52 ▼2.94 |
Dashboard /wp-admin | 2,232 ▲47 | 5.84 ▼0.01 | 99.58 ▼8.67 | 77.27 ▲31.47 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.02 ▲0.01 | 33.37 ▼24.65 | 32.80 ▼19.85 |
Add New Post /wp-admin/post-new.php | 1,563 ▲43 | 17.47 ▼5.52 | 654.01 ▼8.13 | 53.78 ▼18.23 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.13 ▼0.05 | 100.67 ▲1.00 | 66.61 ▲18.87 |
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 were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amilia-store/blocks/amilia-store-iframe.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amilia-store/amilia-store.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/amilia-store/shortcodes/amilia-store-table.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/amilia-store/shortcodes/amilia-store-calendar.php:125
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/amilia-store/shortcodes/amilia-store-iframe.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/amilia-store/shortcodes/amilia-store-standings.php:202
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amilia-store/blocks/amilia-store-calendar.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amilia-store/blocks/amilia-store-standings.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #4, #5 in amilia-store/assets to your readme.txt
amilia-store/amilia-store.php Passed 13 tests
"Amilia Store" version 2.9.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
Embeds your Amilia Store inside a page or post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,380 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 247 | 44 | 2,543 |
PHP | 8 | 49 | 17 | 706 |
CSS | 1 | 17 | 0 | 108 |
SVG | 7 | 1 | 0 | 23 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/edit.png | 0.44KB | 0.34KB | ▼ 22.22% |
images/check.png | 0.42KB | 0.32KB | ▼ 24.59% |
images/lock.png | 0.34KB | 0.25KB | ▼ 24.64% |