Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.81ms] Passed 4 tests
This is a short check of server-side resources used by Perfect Accordion
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.70 ▼2.08 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.22 ▼6.46 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.30 ▼0.02 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 105.62 ▼1.26 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.28 ▼1.44 |
All Accordion /wp-admin/edit.php?post_type=accordion_posts | 3.30 | 37.46 |
Add New Accordion /wp-admin/post-new.php?post_type=accordion_posts | 3.37 | 52.76 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Perfect Accordion
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲176 | 13.80 ▼0.82 | 8.91 ▲6.82 | 40.96 ▼2.13 |
Dashboard /wp-admin | 2,213 ▲33 | 5.64 ▼0.03 | 92.89 ▼8.92 | 74.05 ▲30.64 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.03 ▲0.09 | 37.00 ▼0.78 | 33.08 ▼5.52 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 22.96 ▼0.12 | 685.49 ▲21.48 | 54.14 ▼0.22 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.13 ▼0.18 | 101.33 ▼7.45 | 70.07 ▲22.25 |
All Accordion /wp-admin/edit.php?post_type=accordion_posts | 1,103 | 1.90 | 32.79 | 29.47 |
Add New Accordion /wp-admin/post-new.php?post_type=accordion_posts | 2,280 | 7.67 | 176.25 | 137.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/perfect-accordion/Accordion.php:16
- > PHP Fatal error
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 87% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Contributors: Contributors not specified
- Screenshots: No descriptions were found for these screenshots #2, #3 in perfect-accordion/assets to your readme.txt
perfect-accordion/Accordion.php 85% from 13 tests
The principal PHP file in "Perfect Accordion" v. 2.0.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("perfect-accordion.php" instead of "Accordion.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 440 characters long)
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
No dangerous file extensions were detected260 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 20 | 4 | 159 |
PHP | 2 | 14 | 11 | 76 |
JavaScript | 1 | 7 | 0 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/arrow-down.png | 1.09KB | 0.31KB | ▼ 71.53% |
img/style-one+.png | 0.68KB | 0.55KB | ▼ 19.63% |
img/style-three+.png | 1.91KB | 1.36KB | ▼ 28.84% |
img/arrow-up.png | 1.08KB | 0.32KB | ▼ 70.48% |
img/style-two-.png | 1.17KB | 0.36KB | ▼ 69.58% |