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
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.91ms] Passed 4 tests
An overview of server-side resources used by Ziina
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.65 ▼3.59 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.33 ▼15.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.25 ▲3.74 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.71 ▼5.79 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.39 ▲1.67 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Ziina
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.73 ▼0.29 | 1.89 ▼0.13 | 41.57 ▼1.65 |
Dashboard /wp-admin | 2,203 ▲12 | 5.81 ▲0.92 | 99.51 ▼10.76 | 37.20 ▼6.15 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.00 ▲0.00 | 40.15 ▲4.29 | 36.50 ▲1.97 |
Add New Post /wp-admin/post-new.php | 1,535 ▲6 | 21.13 ▼1.80 | 682.73 ▲39.50 | 55.35 ▼4.07 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.23 ▲0.05 | 94.64 ▼1.58 | 44.12 ▲1.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 650× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\Sniff' not found in wp-content/plugins/ziina/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/YodaConditionsSniff.php:26
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/ziina/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ObjectOperatorIndentSniff.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/ziina/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Sniffs\\AbstractScopeSniff' not found in wp-content/plugins/ziina/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidFunctionNameSniff.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Core\\AbstractMethodUnitTest' not found in wp-content/plugins/ziina/vendor/squizlabs/php_codesniffer/tests/Core/File/FindImplementedInterfaceNamesTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/ziina/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/EmptyStyleDefinitionSniff.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/ziina/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/ziina/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/ziina/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LineEndingsSniff.php:15
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/ziina/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/AssignThisSniff.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: gateway, woocommerce, payment, ziina
ziina/index.php 77% from 13 tests
The main file in "Ziina" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ziina.php" instead of "index.php")
- Requires PHP: Required version must match the one declared in readme.txt ("7.4" instead of "7.2")
- Requires at least: Required version must match the one declared in readme.txt ("6.0" instead of "4.8")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/ziina/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat
- ☣ wp-content/plugins/ziina/vendor/bin/phpcbf.bat
- ☣ wp-content/plugins/ziina/vendor/squizlabs/php_codesniffer/bin/phpcs.bat
- ☣ wp-content/plugins/ziina/vendor/bin/phpcs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 834 | 20,278 | 35,444 | 80,299 |
Pascal | 130 | 3,231 | 7,118 | 6,576 |
XML | 169 | 399 | 714 | 5,642 |
JavaScript | 57 | 762 | 876 | 2,125 |
Markdown | 7 | 380 | 0 | 1,706 |
CSS | 33 | 189 | 92 | 665 |
JSON | 5 | 0 | 0 | 390 |
XSD | 1 | 6 | 0 | 130 |
Bourne Shell | 3 | 23 | 11 | 90 |
DOS Batch | 4 | 4 | 10 | 20 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 478)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 16.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 724.00 |
Average method complexity | 6.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 478.00 |
Code structure | ||
---|---|---|
Namespaces | 172 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 683 | |
▷ Abstract classes | 16 | 2.34% |
▷ Concrete classes | 667 | 97.66% |
▷ Final classes | 2 | 0.30% |
Methods | 2,106 | |
▷ Static methods | 91 | 4.32% |
▷ Public methods | 1,795 | 85.23% |
▷ Protected methods | 247 | 11.73% |
▷ Private methods | 64 | 3.04% |
Functions | 16 | |
▷ Named functions | 3 | 18.75% |
▷ Anonymous functions | 13 | 81.25% |
Constants | 143 | |
▷ Global constants | 112 | 78.32% |
▷ Class constants | 31 | 21.68% |
▷ Public constants | 31 | 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
There are no PNG files in this plugin