Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.80ms] Passed 4 tests
An overview of server-side resources used by WP Accordion
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.64 ▼6.00 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.90 ▼2.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.09 ▼2.33 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.28 ▼20.87 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.74 ▲4.98 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Accordion: 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,883 ▲148 | 13.63 ▼0.74 | 5.42 ▲3.27 | 38.21 ▼8.72 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▼0.05 | 117.93 ▲2.92 | 41.02 ▼4.68 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.04 | 38.52 ▲3.02 | 36.69 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.43 ▲5.92 | 627.85 ▼62.89 | 54.63 ▼8.14 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.24 ▲0.04 | 94.59 ▼8.23 | 40.64 ▼6.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > 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-accordion/plugin-hook.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/my-accordion/plugin-hook.php:25
- > PHP Warning
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
- Screenshots: Screenshot #1 (WP accordion in a post.) image not found
my-accordion/plugin-hook.php 92% from 13 tests
The main file in "WP Accordion" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("my-accordion.php" instead of "plugin-hook.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected170 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 15 | 25 | 61 |
CSS | 2 | 4 | 10 | 56 |
PHP | 1 | 32 | 30 | 53 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
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
8 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 |
images/plus_icon.png | 1.08KB | 0.19KB | ▼ 82.22% |
images/toggle_minus@2x.png | 2.73KB | 0.08KB | ▼ 97.03% |
images/minus_icon.png | 1.02KB | 0.15KB | ▼ 84.96% |
images/accordion-ico.png | 0.64KB | 0.55KB | ▼ 13.50% |
screenshot.png | 23.79KB | 11.92KB | ▼ 49.91% |