72% fuerte-wp

Code Review | Fuerte-WP

WordPress plugin Fuerte-WP scored72%from 54 tests.

About plugin

  • Plugin page: fuerte-wp
  • Plugin version: 1.4.12
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Aug 27, 2021
  • Latest release: Nov 6, 2023
  • Number of updates: 53
  • Update frequency: every 15.1 days
  • Top authors: TCattd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,074 total downloads

Benchmarks

Plugin footprint 82% 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: ▲1.76MB] [CPU: ▲9.83ms] Passed 4 tests

A check of server-side resources used by Fuerte-WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.21 ▲1.7558.93 ▲14.43
Dashboard /wp-admin5.11 ▲1.8158.66 ▼0.37
Posts /wp-admin/edit.php5.16 ▲1.8161.82 ▲13.74
Add New Post /wp-admin/post-new.php7.65 ▲1.76107.53 ▲11.51
Media Library /wp-admin/upload.php4.95 ▲1.7251.45 ▲15.86

Server storage [IO: ▲10.43MB] [DB: ▲0.01MB] 67% from 3 tests

Filesystem and database footprint
It is recommended to fix the following issues
  • Illegal file modification found: 1 file (0.95KB) outside of "wp-content/plugins/fuerte-wp/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 501 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Fuerte-WP: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲20018.50 ▲4.151.68 ▼0.0442.88 ▼3.32
Dashboard /wp-admin2,368 ▲1919.07 ▲3.43195.97 ▲107.8739.40 ▼3.86
Posts /wp-admin/edit.php2,305 ▲2026.20 ▲4.1989.17 ▲50.3133.65 ▼1.42
Add New Post /wp-admin/post-new.php1,592 ▲6626.74 ▲3.54657.00 ▲29.3045.84 ▼2.27
Media Library /wp-admin/upload.php1,439 ▲456.75 ▲2.56118.66 ▲15.3241.80 ▼0.59
Fuerte-WP /wp-admin/crb_carbon_fields_container_fuerte-wp.php260.410.0714.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/fuerte-wp/config-sample/index.php
    • > /wp-content/plugins/fuerte-wp/index.php
    • > /wp-content/plugins/fuerte-wp/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 117× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/fuerte-wp/vendor/htmlburger/carbon-fields/core/Field/Predefined_Options_Field.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/fuerte-wp/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Level_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/fuerte-wp/vendor/htmlburger/carbon-fields/core/Field/Date_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/fuerte-wp/vendor/htmlburger/carbon-fields/templates/Container/nav_menu_item.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/fuerte-wp/vendor/htmlburger/carbon-fields/core/Field/Radio_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/fuerte-wp/vendor/htmlburger/carbon-fields/core/Pimple/Exception/UnknownIdentifierException.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/fuerte-wp/vendor/htmlburger/carbon-fields/core/Walker/Nav_Menu_Item_Edit_Walker.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/fuerte-wp/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Key_Value_Datastore' not found in wp-content/plugins/fuerte-wp/vendor/htmlburger/carbon-fields/core/Datastore/Widget_Datastore.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Datastore\\Datastore_Holder_Interface' not found in wp-content/plugins/fuerte-wp/vendor/htmlburger/carbon-fields/core/Field/Field.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/crb_carbon_fields_container_fuerte-wp.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_fuerte-wp.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: security

fuerte-wp/fuerte-wp.php Passed 13 tests

The principal PHP file in "Fuerte-WP" v. 1.4.12 is loaded by WordPress automatically on each request
77 characters long description:
Stronger WP. Limit access to critical WordPress areas, even other for admins.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin34,162 lines of code in 444 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1767,10310,98416,206
PHP1722,9848,05910,544
PO File301,0801,3152,803
CSS92401,1652,221
Sass4936531,868
JSON300369
Markdown5450151

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.31
▷ Minimum class complexity1.00
▷ Maximum class complexity179.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces24
Interfaces5
Traits0
Classes139
▷ Abstract classes117.91%
▷ Concrete classes12892.09%
▷ Final classes21.56%
Methods993
▷ Static methods12412.49%
▷ Public methods80981.47%
▷ Protected methods17017.12%
▷ Private methods141.41%
Functions118
▷ Named functions3025.42%
▷ Anonymous functions8874.58%
Constants42
▷ Global constants1740.48%
▷ Class constants2559.52%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin