Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼10.36ms] Passed 4 tests
Analyzing server-side resources used by XG Accordion
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 35.07 ▼3.45 |
Dashboard /wp-admin | 3.39 ▲0.05 | 45.08 ▼16.03 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 46.91 ▲1.61 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 79.82 ▼23.56 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.96 ▲3.42 |
New Accordion /wp-admin/post-new.php?post_type=xga_accordion | 3.44 | 44.68 |
All Accordion Shortcode /wp-admin/edit.php?post_type=xga-shortcode | 3.36 | 35.16 |
Help & Support /wp-admin/admin.php?page=xga-help | 3.32 | 29.63 |
Accordion Category /wp-admin/edit-tags.php?taxonomy=xga_accorr_cat&post_type=xga_accordion | 3.30 | 32.14 |
All Accordion /wp-admin/edit.php?post_type=xga_accordion | 3.36 | 34.31 |
Server storage [IO: ▲2.67MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for XG Accordion
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲164 | 13.80 ▼0.59 | 1.58 ▼0.13 | 42.88 ▼4.73 |
Dashboard /wp-admin | 2,278 ▲90 | 5.44 ▼0.46 | 119.84 ▲9.23 | 83.95 ▲39.31 |
Posts /wp-admin/edit.php | 2,157 ▲68 | 2.57 ▲0.54 | 39.60 ▼1.02 | 28.63 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,593 ▲51 | 23.32 ▲5.10 | 667.47 ▲6.54 | 36.60 ▼19.24 |
Media Library /wp-admin/upload.php | 1,473 ▲85 | 4.66 ▲0.41 | 91.85 ▼5.99 | 78.77 ▲33.43 |
New Accordion /wp-admin/post-new.php?post_type=xga_accordion | 2,383 | 8.18 | 218.52 | 151.35 |
All Accordion Shortcode /wp-admin/edit.php?post_type=xga-shortcode | 1,131 | 2.51 | 38.99 | 28.44 |
Help & Support /wp-admin/admin.php?page=xga-help | 963 | 2.29 | 31.65 | 42.48 |
Accordion Category /wp-admin/edit-tags.php?taxonomy=xga_accorr_cat&post_type=xga_accordion | 1,357 | 2.32 | 30.04 | 29.04 |
All Accordion /wp-admin/edit.php?post_type=xga_accordion | 1,151 | 2.73 | 37.67 | 44.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'XGA_ACCORDION_PATH/admin/lib/xgm/xg_metabox_framework.php' (include_path='.:/usr/share/php') in wp-content/plugins/xg-accordion/admin/xg_accordion_metabox.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'XGA_ACCORDION_PATH/admin/lib/xgm/xgp_options_framework.php' (include_path='.:/usr/share/php') in wp-content/plugins/xg-accordion/admin/xg_accrodion_menu_page.php on line 8
- > PHP Warning
Use of undefined constant XGA_ACCORDION_PATH - assumed 'XGA_ACCORDION_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/xg-accordion/admin/xg_accordion_metabox.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/xg-accordion/admin/lib/xgm/xg_metabox_framework.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/xg-accordion/admin/partials/xga-help-display.php:5
- > PHP Warning
require_once(XGA_ACCORDION_PATH/public/shortcode/class-xga-accordion-shortcode.php): failed to open stream: No such file or directory in wp-content/plugins/xg-accordion/public/xga-helpers.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'XGA_ACCORDION_PATH/public/shortcode/class-xga-accordion-shortcode.php' (include_path='.:/usr/share/php') in wp-content/plugins/xg-accordion/public/xga-helpers.php on line 3
- > PHP Warning
require_once(XGA_ACCORDION_PATH/admin/lib/xgm/xgp_options_framework.php): failed to open stream: No such file or directory in wp-content/plugins/xg-accordion/admin/xg_accrodion_menu_page.php on line 8
- > PHP Warning
Use of undefined constant XGA_ACCORDION_PATH - assumed 'XGA_ACCORDION_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/xg-accordion/admin/xg_accrodion_menu_page.php on line 8
- > PHP Warning
Use of undefined constant XGA_ACCORDION_PATH - assumed 'XGA_ACCORDION_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/xg-accordion/public/xga-helpers.php on line 3
- > 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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in xg-accordion/assets to your readme.txt
- Donate link: Invalid URI ("")
xg-accordion/xg_accordion_init.php 85% from 13 tests
This is the main PHP file of "XG Accordion" version 1.0.0, 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:
- Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("xg-accordion.php" instead of "xg_accordion_init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin13,993 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 1,570 | 113 | 5,436 |
SVG | 4 | 0 | 3 | 3,987 |
JavaScript | 5 | 37 | 29 | 2,741 |
PHP | 13 | 224 | 168 | 1,829 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 1 | 1.47% |
▷ Public methods | 65 | 95.59% |
▷ Protected methods | 2 | 2.94% |
▷ Private methods | 1 | 1.47% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
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 |
admin/assets/icon/icon.png | 1.21KB | 0.39KB | ▼ 68.15% |