Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.88MB] [CPU: ▲26.12ms] Passed 4 tests
A check of server-side resources used by WP Nice Accordion - Best FAQ Accordion Plugin for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.49 ▲5.03 | 75.66 ▲32.41 |
Dashboard /wp-admin | 8.51 ▲5.21 | 78.44 ▲28.71 |
Posts /wp-admin/edit.php | 8.51 ▲5.16 | 88.19 ▲37.80 |
Add New Post /wp-admin/post-new.php | 10.02 ▲4.14 | 114.33 ▲5.55 |
Media Library /wp-admin/upload.php | 8.51 ▲5.28 | 74.02 ▲38.36 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 8.51 | 62.20 |
Server storage [IO: ▲7.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 282 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
fs_active_plugins |
fs_accounts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
fs_debug_mode |
fs_gdpr |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Nice Accordion - Best FAQ Accordion Plugin for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲216 | 14.24 ▼0.34 | 7.25 ▲5.51 | 33.31 ▼10.02 |
Dashboard /wp-admin | 2,262 ▲71 | 5.09 ▲0.20 | 111.83 ▲9.78 | 40.88 ▲2.09 |
Posts /wp-admin/edit.php | 2,153 ▲64 | 2.51 ▲0.51 | 42.94 ▲2.45 | 38.44 ▲3.91 |
Add New Post /wp-admin/post-new.php | 1,553 ▲20 | 22.06 ▼0.75 | 725.34 ▲101.82 | 38.10 ▼27.66 |
Media Library /wp-admin/upload.php | 1,447 ▲56 | 4.48 ▲0.26 | 102.13 ▲3.10 | 47.21 ▲4.32 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 1,099 | 2.10 | 31.67 | 28.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wpnice-accordion/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- fs_accounts
- fs_debug_mode
- fs_gdpr
- widget_recent-posts
- theysaidso_admin_options
- fs_active_plugins
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)
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require(): Failed opening required 'WPNICE_ACCORDION_PATHadmin/wpnp-framework/classes/setup.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpnice-accordion/admin/metabox/fields.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wpnice-accordion/includes/view/layout2.php on line 4
- > PHP Warning
require(WPNICE_ACCORDION_PATHadmin/wpnp-framework/classes/setup.class.php): failed to open stream: No such file or directory in wp-content/plugins/wpnice-accordion/admin/metabox/fields.php on line 1
- > PHP Notice
Undefined variable: acoordion_id in wp-content/plugins/wpnice-accordion/includes/view/layout2.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpnice-accordion/includes/assets.php:15
- > PHP Notice
Undefined variable: accordion_data in wp-content/plugins/wpnice-accordion/includes/view/layout2.php on line 4
- > PHP Notice
Undefined variable: acoordion_id in wp-content/plugins/wpnice-accordion/includes/view/layout1.php on line 2
- > PHP Notice
Undefined variable: layout in wp-content/plugins/wpnice-accordion/includes/view/layout2.php on line 2
- > PHP Warning
Use of undefined constant WPNICE_ACCORDION_PATH - assumed 'WPNICE_ACCORDION_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpnice-accordion/admin/metabox/fields.php on line 1
- > PHP Notice
Undefined variable: layout in wp-content/plugins/wpnice-accordion/includes/view/layout1.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: There are too many tags (36 tag instead of maximum 10)
wpnice-accordion/wpnice-accordion.php Passed 13 tests
The main PHP file in "WP Nice Accordion - Best FAQ Accordion Plugin for WordPress" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Fully Responsive and Mobile Friendly Faq/Accordion/QA Showcase plugin.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin53,896 lines of code in 226 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 175 | 8,903 | 16,905 | 36,191 |
JavaScript | 11 | 1,329 | 560 | 6,762 |
Sass | 16 | 969 | 3 | 5,667 |
CSS | 19 | 390 | 521 | 4,950 |
Markdown | 1 | 68 | 0 | 214 |
LESS | 1 | 5 | 1 | 83 |
JSON | 1 | 0 | 0 | 27 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 50.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 102 | |
▷ Abstract classes | 4 | 3.92% |
▷ Concrete classes | 98 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,308 | |
▷ Static methods | 201 | 15.37% |
▷ Public methods | 968 | 74.01% |
▷ Protected methods | 15 | 1.15% |
▷ Private methods | 325 | 24.85% |
Functions | 124 | |
▷ Named functions | 124 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 127 | |
▷ Global constants | 102 | 80.31% |
▷ Class constants | 25 | 19.69% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/wpnp-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |