83% manceppo-inbound-marketing

Code Review | Manceppo B2B Marketing Hub

WordPress plugin Manceppo B2B Marketing Hub scored83%from 54 tests.

About plugin

  • Plugin page: manceppo-inbound-...
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: May 26, 2020
  • Latest release: Jan 10, 2023
  • Number of updates: 24
  • Update frequency: every 40.1 days
  • Top authors: manceppo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,254 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼8.63ms] Passed 4 tests

A check of server-side resources used by Manceppo B2B Marketing Hub
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2544.49 ▲2.17
Dashboard /wp-admin3.59 ▲0.2555.29 ▼9.90
Posts /wp-admin/edit.php3.64 ▲0.2950.52 ▼3.83
Add New Post /wp-admin/post-new.php6.11 ▲0.2289.33 ▼22.96
Media Library /wp-admin/upload.php3.45 ▲0.2240.91 ▲3.99
Add new form /wp-admin/post-new.php?post_type=manceppo_download3.5545.44
Sync /wp-admin/edit.php?post_type=manceppo_download&page=manceppo_sync_settings3.4233.63
All download forms /wp-admin/edit.php?post_type=manceppo_download3.5038.57
Connect /wp-admin/edit.php?post_type=manceppo_download&page=manceppo_connection_settings3.4435.82

Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Manceppo B2B Marketing Hub
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,965 ▲20413.54 ▼0.818.33 ▲6.6438.80 ▼2.25
Dashboard /wp-admin2,232 ▲525.69 ▲0.0385.04 ▼2.4152.94 ▲11.18
Posts /wp-admin/edit.php2,137 ▲402.02 ▲0.0233.12 ▼7.2835.14 ▼0.63
Add New Post /wp-admin/post-new.php1,557 ▲3123.07 ▼0.17655.08 ▼40.2761.99 ▼1.20
Media Library /wp-admin/upload.php1,440 ▲374.11 ▼0.1099.72 ▼11.3142.99 ▼4.77
Add new form /wp-admin/post-new.php?post_type=manceppo_download1,4922.5250.6765.98
Sync /wp-admin/edit.php?post_type=manceppo_download&page=manceppo_sync_settings8162.0324.3428.09
All download forms /wp-admin/edit.php?post_type=manceppo_download1,1061.9932.9228.71
Connect /wp-admin/edit.php?post_type=manceppo_download&page=manceppo_connection_settings9502.0124.9731.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% 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 50% 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
Almost there! Just fix the following items
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function manceppo\\_wp_json_convert_string() in wp-content/plugins/manceppo-inbound-marketing/admin/partials/page-editor-download-select-data.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function manceppo\\wp_nonce_field() in wp-content/plugins/manceppo-inbound-marketing/admin/partials/connection-settings.php:99
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/manceppo-inbound-marketing/manceppo.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function manceppo\\add_action() in wp-content/plugins/manceppo-inbound-marketing/admin/partials/download-edit-form.php:501
    • > PHP Fatal error
      Uncaught Error: Call to undefined function manceppo\\add_action() in wp-content/plugins/manceppo-inbound-marketing/public/frontend.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function manceppo\\esc_url() in wp-content/plugins/manceppo-inbound-marketing/admin/partials/page-editor-manceppo-button.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function manceppo\\wp_nonce_field() in wp-content/plugins/manceppo-inbound-marketing/admin/partials/sync-settings.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: marketing, form builder, content, automation, mailchimp

manceppo-inbound-marketing/manceppo.php 77% from 13 tests

The primary PHP file in "Manceppo B2B Marketing Hub" version 0.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("manceppo-inbound-marketing.php" instead of "manceppo.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 443 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,315 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP244931,0602,048
JavaScript3158180
CSS317087

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.87
▷ Minimum class complexity2.00
▷ Maximum class complexity31.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods109
▷ Static methods4944.95%
▷ Public methods9385.32%
▷ Protected methods00.00%
▷ Private methods1614.68%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants29
▷ Global constants413.79%
▷ Class constants2586.21%
▷ 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/manceppo.png1.92KB1.47KB▼ 23.45%