77% marcomgather

Code Review | MarcomGather

WordPress plugin MarcomGather scored77%from 54 tests.

About plugin

  • Plugin page: marcomgather
  • Plugin version: 1.0.11
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Mar 7, 2022
  • Latest release: Mar 8, 2022
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: marcomcentraldev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /192 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.19ms] Passed 4 tests

A check of server-side resources used by MarcomGather
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.77 ▼2.96
Dashboard /wp-admin3.34 ▲0.0449.82 ▼1.82
Posts /wp-admin/edit.php3.45 ▲0.1053.33 ▲3.62
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.92 ▼3.85
Media Library /wp-admin/upload.php3.26 ▲0.0337.41 ▼0.13

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for MarcomGather
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲11613.26 ▼1.321.90 ▲0.0244.96 ▲2.41
Dashboard /wp-admin2,224 ▲355.79 ▲0.86106.07 ▼9.2278.66 ▲37.16
Posts /wp-admin/edit.php2,125 ▲361.97 ▼0.0339.68 ▲5.0532.79 ▼0.24
Add New Post /wp-admin/post-new.php6,392 ▲4,87322.98 ▲0.06882.75 ▲142.7038.16 ▼19.37
Media Library /wp-admin/upload.php1,421 ▲334.26 ▲0.01102.90 ▼7.5876.57 ▲31.00

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/marcomgather/marcom-gather.php
    • > /wp-content/plugins/marcomgather/uninstall.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'MCC\\Base\\BaseController' not found in wp-content/plugins/marcomgather/inc/Block/AssetBlock.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'MCC\\Base\\BaseController' not found in wp-content/plugins/marcomgather/inc/Pages/Admin.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/marcomgather/templates/admin.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'MCC\\Base\\BaseController' not found in wp-content/plugins/marcomgather/inc/Base/ScriptLoader.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'MCC\\Base\\BaseController' not found in wp-content/plugins/marcomgather/inc/Base/SettingsLink.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Contributors: Plugin contributors field is missing
  • Donate link: Invalid URI ("")
  • Contributors: There were no tags found
The official readme.txt is a good inspiration

marcomgather/marcom-gather.php 85% from 13 tests

The main file in "MarcomGather" v. 1.0.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("marcomgather.php" instead of "marcom-gather.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,372 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP25209354909
JavaScript39068374
JSON40064
SVG30020
CSS2005

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity8.92
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes17.69%
Methods69
▷ Static methods2333.33%
▷ Public methods6695.65%
▷ Protected methods00.00%
▷ Private methods34.35%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
app/img/old/mcc-logo.png0.52KB0.84KB0.00%
app/img/mcc-logo.png0.52KB0.84KB0.00%