Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▲1.72ms] Passed 4 tests
An overview of server-side resources used by WP Accordion
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 48.66 ▲5.76 |
Dashboard /wp-admin | 3.31 ▲0.00 | 66.89 ▲10.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.73 ▼2.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 99.43 ▲5.15 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.50 ▼1.73 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Accordion
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲96 | 13.59 ▲0.33 | 9.39 ▲4.45 | 42.97 ▲2.29 |
Dashboard /wp-admin | 2,206 ▼0 | 4.85 ▼1.01 | 117.29 ▲9.30 | 45.32 ▲5.29 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.06 ▲0.04 | 41.50 ▲2.20 | 36.61 ▲0.75 |
Add New Post /wp-admin/post-new.php | 1,542 ▲8 | 23.38 ▼0.02 | 732.84 ▼7.55 | 53.25 ▼11.35 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▲0.03 | 101.60 ▼9.28 | 44.01 ▼5.59 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/my-wp-accordion/plugin-hook.php:13
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/my-wp-accordion/plugin-hook.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% 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
Please fix the following attributes:
- Screenshots: Screenshot #1 (WP accordion in a post.) image missing
- Screenshots: Please describe screenshot #0 in my-wp-accordion/assets to your readme.txt
- Donate link: Please fix this invalid URI: ""
my-wp-accordion/plugin-hook.php 92% from 13 tests
The main PHP file in "WP Accordion" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("my-wp-accordion.php" instead of "plugin-hook.php")
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
Good job! No executable or dangerous file extensions detected127 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 19 | 32 | 55 |
PHP | 1 | 25 | 17 | 42 |
CSS | 2 | 19 | 14 | 30 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 22.47KB | 10.59KB | ▼ 52.87% |
css/plus_icon.png | 1.08KB | 0.19KB | ▼ 82.22% |
js/faq.png | 1.09KB | 0.25KB | ▼ 76.68% |
css/minus_icon.png | 1.02KB | 0.15KB | ▼ 84.96% |
images/title-left1.png | 0.13KB | 0.10KB | ▼ 22.39% |