10% nubuilder-forte

Code Review | nuBuilder Forte

WordPress plugin nuBuilder Forte scored10%from 54 tests.

About plugin

  • Plugin page: nubuilder-forte
  • Plugin version: 1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.0.3
  • WordPress version: 6.3.1
  • First release: Dec 6, 2018
  • Latest release: Feb 20, 2019
  • Number of updates: 17
  • Update frequency: every 4.6 days
  • Top authors: nubuilder (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /3,607 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/nubuilder-forte/nubuilder-include.php+14
    Constant DB_HOST already defined

Server metrics [RAM: ▲0.81MB] [CPU: ▼51.85ms] Passed 4 tests

Analyzing server-side resources used by nuBuilder Forte
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.81 ▲1.3513.21 ▼27.60
Dashboard /wp-admin4.83 ▲1.4814.81 ▼53.93
Posts /wp-admin/edit.php4.83 ▲1.4814.82 ▼33.38
Add New Post /wp-admin/post-new.php4.83 ▼1.0614.17 ▼92.49
Media Library /wp-admin/upload.php4.83 ▲1.6014.88 ▼23.16

Server storage [IO: ▲34.07MB] [DB: ▲0.44MB] 67% from 3 tests

Input-output and database impact of this plugin
Just a few items left to fix
  • Filesystem usage must be lower than 25MB (currently using 34.07MB)
Filesystem: 2,615 new files
Database: 22 new tables, 6 new options
New tables
zzzzsys_event
zzzzsys_debug
zzzzsys_access_form
zzzzsys_report
zzzzsys_tab
zzzzsys_form
zzzzsys_file
zzzzsys_select_clause
zzzzsys_timezone
zzzzsys_user
...
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for nuBuilder Forte
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.26 ▼1.121.62 ▼0.2736.54 ▼6.65
Dashboard /wp-admin2,218 ▲335.79 ▼0.03104.47 ▲4.3338.93 ▼2.82
Posts /wp-admin/edit.php2,098 ▲122.00 ▲0.0039.84 ▲3.7334.64 ▼1.79
Add New Post /wp-admin/post-new.php1,543 ▲1520.90 ▲2.51692.27 ▲86.4552.91 ▲2.98
Media Library /wp-admin/upload.php1,397 ▲64.24 ▲0.0494.75 ▼3.5242.47 ▼3.18

Uninstaller [IO: ▲0.00MB] [DB: ▼1.14MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/nubuilder-forte/nubuilder-include.php+14
    Constant DB_HOST already defined
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 95× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/url.php
    • > /wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/navigation.php
    • > /wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/server_databases.php
    • > /wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/js/whitelist.php
    • > /wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/db_routines.php
    • > /wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/db_events.php
    • > /wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/import_status.php
    • > /wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/browse_foreigners.php
    • > /wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/db_import.php
    • > /wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/db_structure.php
  • 558× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PhpMyAdmin\avigation\odes\odeDatabaseChildContainer' not found in wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/libraries/classes/Navigation/Nodes/NodeProcedureContainer.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'PhpMyAdmin\\Plugins\\IOTransformationsPlugin' not found in wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/libraries/classes/Plugins/Transformations/Input/Text_Plain_Iptobinary.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/vendor/twig/twig/lib/Twig/Node/Sandbox.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'PhpMyAdmin\\Plugins\\TransformationsInterface' not found in wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/libraries/classes/Plugins/TransformationsPlugin.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PhpMyAdmin\\Properties\\Plugins\\PluginPropertyItem' not found in wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/libraries/classes/Properties/Plugins/ExportPluginProperties.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/vendor/twig/twig/lib/Twig/Node/For.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'PhpMyAdmin\\Config\\Forms\\BaseForm' not found in wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/libraries/classes/Config/Forms/User/MainForm.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Test' not found in wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/vendor/twig/twig/lib/Twig/Test/Node.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'PhpMyAdmin\\Config\\FormDisplay' not found in wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/libraries/classes/Config/Forms/BaseForm.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/nubuilder-forte/vendor/phpmyadmin/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Or.php:12

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

nubuilder-forte/nubuilder-forte.php 92% from 13 tests

Analyzing the main PHP file in "nuBuilder Forte" version 1.5
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 160 characters long)

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin398,241 lines of code in 2,044 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,20925,20773,886192,986
JavaScript50222,47816,188187,756
Twig2282811768,373
CSS153721173,203
JSON24101,878
Markdown3073201,589
C1171186860
SQL5187316759
XML13150301
HTML2175298
YAML93713187
reStructuredText315228
C/C++ Header171315
m41215
Bourne Shell1203

PHP code 0% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,349)
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 577)
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity22.92
▷ Minimum class complexity1.00
▷ Maximum class complexity4,349.00
Average method complexity4.98
▷ Minimum method complexity1.00
▷ Maximum method complexity577.00
Code structure
Namespaces104
Interfaces56
Traits2
Classes966
▷ Abstract classes737.56%
▷ Concrete classes89392.44%
▷ Final classes30.34%
Methods5,774
▷ Static methods1,21821.09%
▷ Public methods4,57579.23%
▷ Protected methods60910.55%
▷ Private methods59010.22%
Functions454
▷ Named functions41791.85%
▷ Anonymous functions378.15%
Constants595
▷ Global constants27045.38%
▷ Class constants32554.62%
▷ Public constants325100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
396 compressed PNG files occupy 0.78MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/phpmyadmin/themes/pmahomme/img/bd_browse.png0.26KB0.49KB0.00%
graphics/bro.png1.82KB0.46KB▼ 74.61%
vendor/phpmyadmin/themes/pmahomme/img/s_process.png0.43KB0.83KB0.00%
vendor/phpmyadmin/themes/pmahomme/img/bd_routine_add.png0.26KB0.38KB0.00%
vendor/phpmyadmin/themes/pmahomme/img/designer/anchor.png0.45KB0.59KB0.00%