Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.97MB] [CPU: ▲54.19ms] 75% from 4 tests
An overview of server-side resources used by IAKPress - Quiz Maker, Form Builder, Photo Gallery, Custom Post UI
The following require your attention
- Extra RAM: The extra memory usage must be under 5MB (currently 5.97MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.76 ▲2.30 | 64.71 ▲24.58 |
Dashboard /wp-admin | 10.62 ▲7.31 | 120.69 ▲68.41 |
Posts /wp-admin/edit.php | 10.64 ▲7.28 | 108.80 ▲58.21 |
Add New Post /wp-admin/post-new.php | 12.88 ▲6.99 | 169.55 ▲71.11 |
Media Library /wp-admin/upload.php | 10.55 ▲7.32 | 108.75 ▲65.55 |
Server storage [IO: ▲36.26MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Total filesystem usage should be limited to 25MB (currently using 36.26MB)
Filesystem: 3,325 new files
Database: no new tables, 8 new options
New WordPress options |
---|
iakpress_version |
db_upgraded |
iakpress_static_url |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for IAKPress - Quiz Maker, Form Builder, Photo Gallery, Custom Post UI
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲74 | 14.34 ▲0.18 | 2.19 ▲0.52 | 44.87 ▼1.73 |
Dashboard /wp-admin | 2,202 ▲22 | 5.52 ▼0.14 | 91.28 ▼0.12 | 67.56 ▲27.93 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 2.00 ▲0.03 | 40.83 ▲1.04 | 35.18 ▼7.30 |
Add New Post /wp-admin/post-new.php | 6,385 ▲4,850 | 26.12 ▲7.76 | 879.43 ▲221.91 | 67.35 ▲2.36 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.25 ▲0.11 | 95.34 ▼14.40 | 72.85 ▲22.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'pluginUninstall' not found or invalid function name
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/iakpress/vendor/symfony/error-handler/Resources/assets/images/symfony-ghost.svg.php
- > /wp-content/plugins/iakpress/vendor/symfony/error-handler/Resources/views/trace.html.php
- > /wp-content/plugins/iakpress/vendor/symfony/http-kernel/Resources/welcome.html.php
- > /wp-content/plugins/iakpress/vendor/phpmailer/phpmailer/get_oauth_token.php
- > /wp-content/plugins/iakpress/vendor/symfony/error-handler/Resources/views/logs.html.php
- 1592× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/iakpress/vendor/symfony/twig-bridge/Extension/CsrfExtension.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Sandbox\\SecurityError' not found in wp-content/plugins/iakpress/vendor/twig/twig/src/Sandbox/SecurityNotAllowedPropertyError.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig\odeVisitor\\AbstractNodeVisitor' not found in wp-content/plugins/iakpress/vendor/symfony/twig-bridge/NodeVisitor/TranslationDefaultDomainNodeVisitor.php:31
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\DependencyInjection\\Loader\\FileLoader' not found in wp-content/plugins/iakpress/vendor/symfony/dependency-injection/Loader/PhpFileLoader.php:34
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBagInterface' not found in wp-content/plugins/iakpress/vendor/symfony/http-foundation/Session/Flash/FlashBag.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function Symfony\\Component\\EventDispatcher\\trigger_deprecation() in wp-content/plugins/iakpress/vendor/symfony/event-dispatcher/LegacyEventDispatcherProxy.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBagInterface' not found in wp-content/plugins/iakpress/vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/iakpress/vendor/twig/twig/src/TokenParser/DeprecatedTokenParser.php:28
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Sandbox\\SecurityError' not found in wp-content/plugins/iakpress/vendor/twig/twig/src/Sandbox/SecurityNotAllowedTagError.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface' not found in wp-content/plugins/iakpress/vendor/symfony/framework-bundle/DependencyInjection/Compiler/SessionPass.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #4 in iakpress/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
iakpress/iakpress.php 92% from 13 tests
Analyzing the main PHP file in "IAKPress - Quiz Maker, Form Builder, Photo Gallery, Custom Post UI" version 1.3.2
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 242 characters long)
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 plugin229,472 lines of code in 3,040 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,385 | 41,766 | 69,070 | 199,596 |
Twig | 78 | 1,126 | 239 | 9,198 |
JSON | 61 | 3 | 0 | 6,973 |
Markdown | 94 | 1,635 | 0 | 5,525 |
CSS | 20 | 516 | 221 | 3,235 |
reStructuredText | 41 | 1,517 | 1,948 | 1,407 |
XSD | 5 | 158 | 2 | 1,265 |
JavaScript | 262 | 149 | 410 | 837 |
XML | 13 | 131 | 28 | 552 |
SVG | 53 | 0 | 15 | 389 |
YAML | 22 | 94 | 110 | 364 |
HTML | 4 | 12 | 0 | 71 |
Bourne Again Shell | 1 | 10 | 14 | 57 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 573.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 414 | |
Interfaces | 246 | |
Traits | 52 | |
Classes | 1,930 | |
▷ Abstract classes | 123 | 6.37% |
▷ Concrete classes | 1,807 | 93.63% |
▷ Final classes | 359 | 19.87% |
Methods | 11,678 | |
▷ Static methods | 1,019 | 8.73% |
▷ Public methods | 9,267 | 79.35% |
▷ Protected methods | 1,024 | 8.77% |
▷ Private methods | 1,387 | 11.88% |
Functions | 876 | |
▷ Named functions | 246 | 28.08% |
▷ Anonymous functions | 630 | 71.92% |
Constants | 3,185 | |
▷ Global constants | 121 | 3.80% |
▷ Class constants | 3,064 | 96.20% |
▷ Public constants | 2,890 | 94.32% |
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
32 PNG files occupy 0.21MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
public/css/images/iakpress/android-chrome-192x192.png | 6.95KB | 2.77KB | ▼ 60.21% |
public/css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
public/css/images/iakpress/smtp.png | 6.53KB | 6.62KB | 0.00% |
public/css/images/iakpress/apple-touch-icon.png | 6.46KB | 2.47KB | ▼ 61.83% |