Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Parse error in wp-content/plugins/sinking-dropdowns/sinking-dropdowns.php+150
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.27ms] Passed 4 tests
A check of server-side resources used by Sinking Dropdowns WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.47 ▲2.21 |
Dashboard /wp-admin | 3.31 ▲0.00 | 58.85 ▲5.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.53 ▲0.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.07 ▼6.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.02 ▼0.77 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Sinking Dropdowns WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.30 ▼0.97 | 1.76 ▲0.04 | 48.46 ▼0.44 |
Dashboard /wp-admin | 2,206 ▲18 | 5.89 ▲1.00 | 110.35 ▲3.05 | 46.77 ▲3.58 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 1.97 ▼0.04 | 39.65 ▲1.21 | 32.16 ▼1.88 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.41 ▲0.15 | 652.23 ▼26.22 | 55.21 ▼5.12 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.02 | 98.42 ▼4.12 | 43.46 ▼0.97 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sinking-dropdowns/views/backend_credits.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant SINKDROPDOWNS_PATH_INT - assumed 'SINKDROPDOWNS_PATH_INT' (this will throw an Error in a future version of PHP) in wp-content/plugins/sinking-dropdowns/controller/constants.php on line 11
- > PHP Warning
Use of undefined constant SINKDROPDOWNS_PATH_EXT - assumed 'SINKDROPDOWNS_PATH_EXT' (this will throw an Error in a future version of PHP) in wp-content/plugins/sinking-dropdowns/views/backend_credits.php on line 7
- > PHP Warning
Use of undefined constant SINKDROPDOWNS_version - assumed 'SINKDROPDOWNS_version' (this will throw an Error in a future version of PHP) in wp-content/plugins/sinking-dropdowns/views/backend_credits.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sinking-dropdowns/views/config.php:11
- > PHP Warning
Use of undefined constant SINKDROPDOWNS_title - assumed 'SINKDROPDOWNS_title' (this will throw an Error in a future version of PHP) in wp-content/plugins/sinking-dropdowns/views/backend_credits.php on line 4
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/sinking-dropdowns/sinking-dropdowns.php on line 150
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% 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: Add images for these screenshots: #1 (sinking_dropdowns options - hover/click, and control colors), #2 (Hover menu on a full screen), #3 (Menu on a mobile width screen (automatic).)
sinking-dropdowns/sinking-dropdowns.php Passed 13 tests
The primary PHP file in "Sinking Dropdowns WordPress" version 1.25 is used by WordPress to initiate all plugin functionality
26 characters long description:
Responsive Dropdown Plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,330 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 267 | 161 | 1,443 |
CSS | 4 | 91 | 60 | 633 |
PHP | 5 | 95 | 27 | 242 |
SVG | 1 | 0 | 0 | 12 |
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.21 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logoSocialInk.png | 3.85KB | 2.85KB | ▼ 26.03% |