68% madeep-wp-connector

Code Review | = Madeep WP Connector

WordPress plugin = Madeep WP Connector scored68%from 54 tests.

About plugin

  • Plugin page: madeep-wp-connector
  • Plugin version: 0.4.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 23, 2020
  • Latest release: Jul 24, 2023
  • Number of updates: 33
  • Update frequency: every 30.5 days
  • Top authors: dlmadeep (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,142 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.80MB] [CPU: ▲2.54ms] Passed 4 tests

This is a short check of server-side resources used by = Madeep WP Connector
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.25 ▲0.7945.32 ▲0.08
Dashboard /wp-admin4.16 ▲0.8658.84 ▲10.48
Posts /wp-admin/edit.php4.21 ▲0.8655.10 ▲8.92
Add New Post /wp-admin/post-new.php6.64 ▲0.7689.50 ▼7.13
Media Library /wp-admin/upload.php4.03 ▲0.8043.64 ▲8.29

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: 7 new tables, 7 new options
New tables
wp_madeep_events
wp_madeep_hotels
wp_madeep_ecoms
wp_madeep_services
wp_madeep_offers
wp_madeep_rooms
wp_madeep_config
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
madeep_sync_key
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

= Madeep WP Connector: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲17713.53 ▼0.701.80 ▼0.8741.14 ▼5.35
Dashboard /wp-admin2,313 ▲1254.94 ▲0.07110.97 ▲7.4341.73 ▲2.78
Posts /wp-admin/edit.php2,201 ▲1122.13 ▲0.1541.47 ▲0.7635.53 ▼1.28
Add New Post /wp-admin/post-new.php1,543 ▲123.29 ▲5.20587.51 ▼33.3549.31 ▼2.71
Media Library /wp-admin/upload.php1,502 ▲1174.49 ▲0.2998.64 ▼3.4643.57 ▲1.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_madeep_config
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • madeep_sync_key
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/madeep-wp-connector/madeep.php
  • 27× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_categories() in wp-content/plugins/madeep-wp-connector/sources/pages/madeep-options.php:7
    • > PHP Fatal error
      require_once(): Failed opening required 'Madeep_Dirsources/Madeep-Admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/madeep-wp-connector/sources/pages/madeep-options-debug.php on line 2
    • > PHP Warning
      Use of undefined constant Madeep_Dir - assumed 'Madeep_Dir' (this will throw an Error in a future version of PHP) in wp-content/plugins/madeep-wp-connector/sources/pages/madeep-options-templates.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/madeep-wp-connector/sources/Madeep-Admin.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'Madeep_Dirsources/Madeep-Admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/madeep-wp-connector/sources/pages/madeep-options-languages.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/madeep-wp-connector/sources/Madeep-Admin.php on line 4
    • > PHP Notice
      Undefined index: madeepDebug in wp-content/plugins/madeep-wp-connector/sources/pages/madeep-options.php on line 2
    • > PHP Warning
      require_once(Madeep_Dirsources/Madeep-Admin.php): failed to open stream: No such file or directory in wp-content/plugins/madeep-wp-connector/sources/pages/madeep-options-status.php on line 2
    • > PHP Warning
      require_once(Madeep_Dirsources/Madeep-Admin.php): failed to open stream: No such file or directory in wp-content/plugins/madeep-wp-connector/sources/pages/madeep-options-languages.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'Madeep_Dirsources/Madeep-Admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/madeep-wp-connector/sources/pages/madeep-options-status.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

madeep-wp-connector/madeep.php 92% from 13 tests

The main PHP script in "= Madeep WP Connector" version 0.4.3 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("madeep-wp-connector.php" instead of "madeep.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,171 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP135753993,746
CSS3154158
JSON700118
SVG11197
JavaScript371052

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.41
Average class complexity249.50
▷ Minimum class complexity83.00
▷ Maximum class complexity416.00
Average method complexity4.79
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods131
▷ Static methods5340.46%
▷ Public methods8967.94%
▷ Protected methods00.00%
▷ Private methods4232.06%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin