Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.94ms] Passed 4 tests
This is a short check of server-side resources used by Flexible Slide To Top Accordion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.96 ▲5.15 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.75 ▼1.82 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 56.08 ▲5.58 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 86.82 ▼14.39 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.37 ▲3.30 |
Accordion Options /wp-admin/options-general.php?page=accordion-slide-up | 3.24 | 33.21 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Flexible Slide To Top Accordion
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,954 ▲219 | 15.20 ▲0.62 | 3.62 ▲1.90 | 42.81 ▼0.37 |
Dashboard /wp-admin | 2,352 ▲164 | 6.49 ▲0.65 | 134.49 ▲31.37 | 41.70 ▼7.03 |
Posts /wp-admin/edit.php | 2,260 ▲168 | 3.38 ▲1.32 | 55.41 ▲14.60 | 34.56 ▼0.80 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 18.35 ▲0.14 | 572.11 ▼66.81 | 33.52 ▼24.55 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.18 ▼0.03 | 84.13 ▼17.17 | 44.61 ▲1.44 |
Accordion Options /wp-admin/options-general.php?page=accordion-slide-up | 1,089 | 3.04 | 37.59 | 23.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=accordion-slide-up
- > Notice in wp-content/plugins/flexible-slide-to-top-accordion/functions.php+158
Undefined variable: checked
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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flexible-slide-to-top-accordion/functions.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flexible-slide-to-top-accordion/functions.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Backend Page) image missing
flexible-slide-to-top-accordion/index.php 92% from 13 tests
This is the main PHP file of "Flexible Slide To Top Accordion" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("flexible-slide-to-top-accordion.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,077 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 137 | 176 | 424 |
CSS | 3 | 37 | 5 | 358 |
PHP | 2 | 54 | 46 | 295 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 12 | |
▷ Named functions | 12 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/add-button.png | 5.47KB | 2.12KB | ▼ 61.24% |
images/down.png | 2.97KB | 0.13KB | ▼ 95.76% |
img/prev.png | 1.33KB | 1.59KB | 0.00% |
screenshot-1.png | 91.35KB | 30.30KB | ▼ 66.83% |
images/button-remove.png | 1.18KB | 1.03KB | ▼ 12.85% |