Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/eit-accordion/eit-accordion.php+23
Use of undefined constant eit_ACCORDION_PLUGIN_PATH - assumed 'eit_ACCORDION_PLUGIN_PATH' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.18ms] Passed 4 tests
A check of server-side resources used by EIT Accordion
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 3.84 ▼35.86 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.00 ▼40.69 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.10 ▼39.01 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.50 ▼85.17 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.54 ▼28.99 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
EIT Accordion: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲162 | 13.93 ▼0.46 | 8.02 ▲6.23 | 36.36 ▼7.63 |
Dashboard /wp-admin | 2,212 ▲21 | 4.89 ▼0.02 | 111.20 ▲6.13 | 39.44 ▼5.23 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.98 ▼0.02 | 46.76 ▲8.32 | 37.37 ▲3.70 |
Add New Post /wp-admin/post-new.php | 1,520 ▼27 | 22.97 ▲4.88 | 619.18 ▼13.27 | 55.95 ▲1.55 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.07 | 97.10 ▼5.05 | 42.33 ▼0.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/eit-accordion/eit-accordion.php+23
Use of undefined constant eit_ACCORDION_PLUGIN_PATH - assumed 'eit_ACCORDION_PLUGIN_PATH' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/eit-accordion/eit-accordion.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/eit-accordion/eit-accordion.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
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (eit accordion in a post.) image missing
- Donate link: Please fix this invalid url: ""
eit-accordion/eit-accordion.php Passed 13 tests
The primary PHP file in "EIT Accordion" version 1.0 is used by WordPress to initiate all plugin functionality
80 characters long description:
This plugin will add an expand collapse accordion feature inside a post or page.
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
Success! There were no dangerous files found in this plugin456 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 93 | 68 | 410 |
PHP | 1 | 23 | 15 | 34 |
CSS | 1 | 2 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
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
Using a strong compression for your PNG files is a great way to speed-up 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 |
css/minus_icon.png | 1.02KB | 0.15KB | ▼ 84.96% |
js/faq.png | 1.09KB | 0.25KB | ▼ 76.68% |
css/plus_icon.png | 1.08KB | 0.19KB | ▼ 82.22% |