67% iakpress

Code Review | IAKPress - Quiz Maker, Form Builder, Photo Gallery, Custom Post UI

WordPress plugin IAKPress - Quiz Maker, Form Builder, Photo Gallery, Custom Post UI scored67%from 54 tests.

About plugin

  • Plugin page: iakpress
  • Plugin version: 1.3.2
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.9.0
  • WordPress version: 6.3.1
  • First release: Mar 21, 2020
  • Latest release: Mar 22, 2022
  • Number of updates: 106
  • Update frequency: every 6.9 days
  • Top authors: iakpressteam (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,583 total downloads

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)
PageMemory (MB)CPU Time (ms)
Home /5.76 ▲2.3064.71 ▲24.58
Dashboard /wp-admin10.62 ▲7.31120.69 ▲68.41
Posts /wp-admin/edit.php10.64 ▲7.28108.80 ▲58.21
Add New Post /wp-admin/post-new.php12.88 ▲6.99169.55 ▲71.11
Media Library /wp-admin/upload.php10.55 ▲7.32108.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7414.34 ▲0.182.19 ▲0.5244.87 ▼1.73
Dashboard /wp-admin2,202 ▲225.52 ▼0.1491.28 ▼0.1267.56 ▲27.93
Posts /wp-admin/edit.php2,118 ▲152.00 ▲0.0340.83 ▲1.0435.18 ▼7.30
Add New Post /wp-admin/post-new.php6,385 ▲4,85026.12 ▲7.76879.43 ▲221.9167.35 ▲2.36
Media Library /wp-admin/upload.php1,419 ▲194.25 ▲0.1195.34 ▼14.4072.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP2,38541,76669,070199,596
Twig781,1262399,198
JSON61306,973
Markdown941,63505,525
CSS205162213,235
reStructuredText411,5171,9481,407
XSD515821,265
JavaScript262149410837
XML1313128552
SVG53015389
YAML2294110364
HTML412071
Bourne Again Shell1101457
Bourne Shell1203

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 code0.45
Average class complexity12.10
▷ Minimum class complexity1.00
▷ Maximum class complexity573.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces414
Interfaces246
Traits52
Classes1,930
▷ Abstract classes1236.37%
▷ Concrete classes1,80793.63%
▷ Final classes35919.87%
Methods11,678
▷ Static methods1,0198.73%
▷ Public methods9,26779.35%
▷ Protected methods1,0248.77%
▷ Private methods1,38711.88%
Functions876
▷ Named functions24628.08%
▷ Anonymous functions63071.92%
Constants3,185
▷ Global constants1213.80%
▷ Class constants3,06496.20%
▷ Public constants2,89094.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
FileSize - originalSize - compressedSavings
public/css/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
public/css/images/iakpress/android-chrome-192x192.png6.95KB2.77KB▼ 60.21%
public/css/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
public/css/images/iakpress/smtp.png6.53KB6.62KB0.00%
public/css/images/iakpress/apple-touch-icon.png6.46KB2.47KB▼ 61.83%