74% mangofp

Code Review | MangoFp

WordPress plugin MangoFp scored74%from 54 tests.

About plugin

  • Plugin page: mangofp
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Mar 28, 2021
  • Latest release: Mar 28, 2021
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: andresjarviste (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /342 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼3.87ms] Passed 4 tests

An overview of server-side resources used by MangoFp
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1337.39 ▲0.98
Dashboard /wp-admin3.44 ▲0.1344.74 ▼3.24
Posts /wp-admin/edit.php3.55 ▲0.1949.07 ▲2.12
Add New Post /wp-admin/post-new.php6.11 ▲0.2284.81 ▼14.99
Media Library /wp-admin/upload.php3.36 ▲0.1334.00 ▲1.76
Settings /wp-admin/admin.php?page=mangofp-contact3.3430.49
Contacts /wp-admin/admin.php?page=mangofp-admin3.3430.60

Server storage [IO: ▲7.70MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: 5 new tables, 7 new options
New tables
wp_mangofp_templates
wp_mangofp_labels
wp_mangofp_messages
wp_mangofp_history
wp_mangofp_options
New WordPress options
theysaidso_admin_options
wp_mangofp_db_version
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for MangoFp
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8114.40 ▲0.111.73 ▲0.0541.22 ▲1.60
Dashboard /wp-admin2,233 ▲455.88 ▲0.03108.14 ▲0.3339.45 ▼1.31
Posts /wp-admin/edit.php2,116 ▲271.99 ▲0.0139.28 ▲2.5435.20 ▼1.32
Add New Post /wp-admin/post-new.php1,555 ▲1323.14 ▲4.97622.63 ▼5.6054.69 ▼4.71
Media Library /wp-admin/upload.php1,418 ▲334.23 ▲0.0495.78 ▼5.3443.52 ▲0.16
Settings /wp-admin/admin.php?page=mangofp-contact9139.95173.6364.98
Contacts /wp-admin/admin.php?page=mangofp-admin9386.4988.1934.83

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
Please fix the following items
  • The plugin did not uninstall successfully, leaving 5 tables in the database
    • wp_mangofp_templates
    • wp_mangofp_messages
    • wp_mangofp_options
    • wp_mangofp_history
    • wp_mangofp_labels
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • wp_mangofp_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
Please fix the following items
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'MangoFp\\Entities\\BaseEntity' not found in wp-content/plugins/mangofp/src/Entities/Label.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'MangoFp\\Entities\\BaseEntity' not found in wp-content/plugins/mangofp/src/Entities/Option.php:5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mangofp/mangofp.php on line 211
    • > PHP Fatal error
      Uncaught Error: Class 'MangoFp\\Entities\\Option' not found in wp-content/plugins/mangofp/src/Entities/Steps.php:7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/mangofp/mangofp.php on line 211
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/mangofp/mangofp.php on line 211
    • > PHP Fatal error
      Uncaught Error: Class 'MangoFp\\Entities\\BaseEntity' not found in wp-content/plugins/mangofp/src/Entities/Template.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'MangoFp\\Entities\\BaseEntity' not found in wp-content/plugins/mangofp/src/Entities/Message.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'MangoFp\\Entities\\BaseEntity' not found in wp-content/plugins/mangofp/src/Entities/HistoryItem.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'MangoFp\\UseCases\\iOutput' not found in wp-content/plugins/mangofp/src/Adapters/AdminRoutes.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: leads, contact form 7, messages, crm, contact form

mangofp/mangofp.php 92% from 13 tests

"MangoFp" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/mangofp")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected3,046 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP18418482,436
JavaScript401,428473
PO File15172132
CSS40165

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity12.94
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces3
Interfaces2
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods144
▷ Static methods1510.42%
▷ Public methods13190.97%
▷ Protected methods128.33%
▷ Private methods10.69%
Functions21
▷ Named functions2095.24%
▷ Anonymous functions14.76%
Constants31
▷ Global constants00.00%
▷ Class constants31100.00%
▷ Public constants31100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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