Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/p-accordion/p-accordion.php+77
Methods with the same name as their class will not be constructors in a future version of PHP; PPaccordion has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼55.29ms] Passed 4 tests
This is a short check of server-side resources used by Personal accordion
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.31 | 5.15 ▼35.05 |
Dashboard /wp-admin | 2.18 ▼1.13 | 5.92 ▼46.66 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 7.08 ▼43.72 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 6.00 ▼95.71 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 5.73 ▼29.84 |
Personal Accordion /wp-admin/options-general.php?page=p-accordion-options-page | 2.18 | 6.82 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 19 new options
New WordPress options |
---|
p_accordion_categorie_simbol |
p_accordion_categorie |
p_accordion_trans_color |
p_accordion_section_panel |
p_accordion_section_simbol |
p_accordion_categorie_font_size |
widget_recent-comments |
p_accordion_categorie_color |
widget_theysaidso_widget |
p_accordion_categorie_panel |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Personal accordion
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.92 ▼0.69 | 9.19 ▲7.70 | 40.94 ▲0.87 |
Dashboard /wp-admin | 2,215 ▲37 | 5.79 ▲0.14 | 92.37 ▼4.16 | 39.14 ▼5.62 |
Posts /wp-admin/edit.php | 2,128 ▲25 | 2.30 ▲0.28 | 40.64 ▲3.72 | 36.79 ▲6.75 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.98 ▲0.98 | 615.23 ▼59.03 | 33.24 ▼18.61 |
Media Library /wp-admin/upload.php | 1,417 ▲23 | 4.38 ▲0.15 | 96.27 ▼0.66 | 41.09 ▲0.55 |
Personal Accordion /wp-admin/options-general.php?page=p-accordion-options-page | 1,669 | 3.19 | 65.02 | 28.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/p-accordion/p-accordion.php+77
Methods with the same name as their class will not be constructors in a future version of PHP; PPaccordion has a deprecated constructor
- This plugin does not fully uninstall, leaving 19 options in the database
- p_accordion_time_action
- p_accordion_section_font_size
- p_accordion_categorie_color
- p_accordion_radius
- widget_theysaidso_widget
- p_accordion_section_panel
- p_accordion_section_color
- p_accordion_trans_color
- theysaidso_admin_options
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=p-accordion-options-page
- > Deprecated in wp-content/plugins/p-accordion/p-accordion.php+77
Methods with the same name as their class will not be constructors in a future version of PHP; PPaccordion has a deprecated constructor
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/p-accordion/p-accordion.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
There were not plugin tags detected
p-accordion/p-accordion.php Passed 13 tests
The primary PHP file in "Personal accordion" version 1.1.24 is used by WordPress to initiate all plugin functionality
64 characters long description:
Plugin per gestire in modo personalizzato le strutture accordion
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
There were no executable files found in this plugin651 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 60 | 44 | 386 |
PO File | 2 | 38 | 38 | 108 |
JavaScript | 2 | 18 | 2 | 83 |
CSS | 1 | 7 | 9 | 74 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/edit45.png | 1.14KB | 0.85KB | ▼ 25.24% |
images/eye-3-32.png | 0.61KB | 0.72KB | 0.00% |
images/edit-9-34.png | 0.86KB | 1.06KB | 0.00% |