Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.87MB] [CPU: ▼37.51ms] Passed 4 tests
An overview of server-side resources used by WF Popup Menu
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.09 ▼0.37 | 16.56 ▼26.28 |
Dashboard /wp-admin | 3.14 ▼0.16 | 18.17 ▼30.33 |
Posts /wp-admin/edit.php | 3.14 ▼0.21 | 19.84 ▼24.91 |
Add New Post /wp-admin/post-new.php | 3.14 ▼2.74 | 19.85 ▼68.53 |
Media Library /wp-admin/upload.php | 3.14 ▼0.09 | 22.10 ▼13.40 |
Popup Menu /wp-admin/edit.php?post_type=popup_menu | 3.14 | 21.07 |
Add Popup Menu /wp-admin/post-new.php?post_type=popup_menu | 3.14 | 16.58 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WF Popup Menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,058 ▲323 | 15.11 ▲0.36 | 4.74 ▲2.88 | 41.05 ▼8.08 |
Dashboard /wp-admin | 2,374 ▲183 | 6.44 ▲0.57 | 123.33 ▲15.69 | 43.54 ▲1.52 |
Posts /wp-admin/edit.php | 2,280 ▲191 | 3.35 ▲1.36 | 56.35 ▲19.79 | 37.16 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,737 ▲203 | 23.05 ▼0.18 | 606.70 ▼71.86 | 32.98 ▼19.33 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.23 ▲0.05 | 79.40 ▼17.16 | 40.33 ▼4.63 |
Popup Menu /wp-admin/edit.php?post_type=popup_menu | 1,264 | 3.41 | 45.51 | 27.03 |
Add Popup Menu /wp-admin/post-new.php?post_type=popup_menu | 1,827 | 4.00 | 78.42 | 61.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/wf-popup-menu/lib/init.php+746
count(): Parameter must be an array or an object that implements Countable
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popup_menu
- > Warning in wp-content/plugins/wf-popup-menu/lib/init.php+746
count(): Parameter must be an array or an object that implements Countable
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wf-popup-menu/lib/tests/phpunit/includes/bootstrap.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wf-popup-menu/inc/custom_meta_box.php:63
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wf-popup-menu/lib/tests/phpunit/tests/CMB_Core_Test.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wf-popup-menu/lib/init.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wf-popup-menu/lib/example-functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wf-popup-menu/index.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% 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 to be fixed:
- Contributors: Plugin contributors field is missing
- Screenshots: Please add images for these screenshots: #1 (Find Shortcode in Dashboard > Popup Menu.), #2 (Menu link in Page), #3 (Demo of Menu .Live link here http://demo.hamidulbd.com/wf-popup-menu-demo/.)
wf-popup-menu/index.php 92% from 13 tests
The main file in "WF Popup Menu" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wf-popup-menu.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected5,709 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 331 | 415 | 2,316 |
PHP | 11 | 546 | 1,086 | 2,182 |
CSS | 3 | 101 | 21 | 814 |
Markdown | 3 | 83 | 0 | 272 |
Bourne Shell | 1 | 15 | 4 | 59 |
JSON | 1 | 0 | 0 | 31 |
YAML | 1 | 5 | 0 | 18 |
XML | 1 | 0 | 1 | 17 |
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.52 |
Average class complexity | 57.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 134 | |
▷ Static methods | 34 | 25.37% |
▷ Public methods | 132 | 98.51% |
▷ Protected methods | 2 | 1.49% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
lib/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
lib/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
lib/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |