10% marfeelpress

Code Review | MarfeelPress

WordPress plugin MarfeelPress scored10%from 54 tests.

About plugin

  • Plugin page: marfeelpress
  • Plugin version: 2.1.338
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Apr 19, 2018
  • Latest release: Feb 17, 2022
  • Number of updates: 487
  • Update frequency: every 2.9 days
  • Top authors: alicemrf (98.56%)eduardcot (1.64%)

Code review

54 tests

User reviews

11 reviews

Install metrics

100+ active /66,873 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/marfeelpress/marfeel-press.php+38
    include_once(wp-content/plugins/marfeelpress/includes/base/src/services/definition/class-marfeel-press-definition-builder.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼0.27MB] [CPU: ▼40.86ms] Passed 4 tests

A check of server-side resources used by MarfeelPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2511.86 ▼26.18
Dashboard /wp-admin3.74 ▲0.4316.36 ▼32.07
Posts /wp-admin/edit.php3.74 ▲0.3815.75 ▼30.39
Add New Post /wp-admin/post-new.php3.74 ▼2.1514.48 ▼74.79
Media Library /wp-admin/upload.php3.74 ▲0.5117.09 ▼18.43

Server storage [IO: ▲5.04MB] [DB: ▲0.20MB] 67% from 3 tests

Filesystem and database footprint
These are issues you should consider
  • Illegal file modification found: 2 files (0.00KB) outside of "wp-content/plugins/marfeelpress/" and "wp-content/uploads/"
    • (new file) ads.mrf.txt
    • (new file) ads.txt
Filesystem: 1,220 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
mrf_definition
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for MarfeelPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3515.52 ▲0.961.50 ▼0.0636.79 ▼6.84
Dashboard /wp-admin2,279 ▲1025.61 ▲0.0481.26 ▼9.8043.70 ▲0.68
Posts /wp-admin/edit.php2,190 ▲902.05 ▲0.0236.25 ▲1.4432.35 ▼9.38
Add New Post /wp-admin/post-new.php6,302 ▲4,77420.97 ▼2.26901.99 ▲246.0346.01 ▼7.46
Media Library /wp-admin/upload.php1,484 ▲904.17 ▼0.0195.86 ▼5.0744.03 ▲1.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/marfeelpress/marfeel-press.php+38
    include_once(wp-content/plugins/marfeelpress/includes/base/src/services/definition/class-marfeel-press-definition-builder.php): failed to open stream: No such file or directory
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • mrf_definition
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% 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 0% 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
  • 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/marfeelpress/includes/base/src/templates/meta-mrf-extractable.php
    • > /wp-content/plugins/marfeelpress/includes/admin/src/pages/templates/components/mrf-footer.php
    • > /wp-content/plugins/marfeelpress/includes/admin/src/pages/templates/mrf-token-handshake.php
    • > /wp-content/plugins/marfeelpress/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
    • > /wp-content/plugins/marfeelpress/includes/admin/src/pages/templates/mrf-reload-window-template.php
    • > /wp-content/plugins/marfeelpress/includes/base/src/templates/marfeelgarda.php
    • > /wp-content/plugins/marfeelpress/includes/admin/src/pages/templates/components/mrf-inspectlet.php
    • > /wp-content/plugins/marfeelpress/includes/admin/src/pages/templates/components/mrf-back-icon.php
    • > /wp-content/plugins/marfeelpress/includes/admin/src/pages/templates/mrf-settings-dev-template.php
    • > /wp-content/plugins/marfeelpress/includes/admin/src/pages/templates/components/mrf-logo.php
  • 678× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'API\\Mrf_API' not found in wp-content/plugins/marfeelpress/includes/api/src/widgets/class-mrf-widgets-api.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Marfeel\\Symfony\\Component\\Console\\Output\\OutputInterface' not found in wp-content/plugins/marfeelpress/vendor/symfony/console/Output/ConsoleOutputInterface.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig_RuntimeLoaderInterface' not found in wp-content/plugins/marfeelpress/vendor/twig/twig/lib/Twig/FactoryRuntimeLoader.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/marfeelpress/vendor/twig/twig/lib/Twig/TokenParser/Flush.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_BaseNodeVisitor' not found in wp-content/plugins/marfeelpress/vendor/twig/twig/lib/Twig/NodeVisitor/Optimizer.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Marfeel\\Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/marfeelpress/vendor/symfony/css-selector/Parser/Handler/WhitespaceHandler.php:26
    • > PHP Notice
      Undefined variable: context in wp-content/plugins/marfeelpress/includes/admin/src/pages/templates/mrf-leroy-template.php on line 20
    • > PHP Fatal error
      Uncaught Error: Class 'Marfeel\\Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/marfeelpress/vendor/symfony/translation/Dumper/IniFileDumper.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'API\\Extract\\Marfeel_Press_Gutenberg_Content_API' not found in wp-content/plugins/marfeelpress/includes/api/src/extract/class-marfeel-press-extractor-api.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Marfeel\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/marfeelpress/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
No tags were detected

marfeelpress/marfeel-press.php 92% from 13 tests

The principal PHP file in "MarfeelPress" v. 2.1.338 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("marfeelpress.php" instead of "marfeel-press.php")

Code Analysis 3% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Almost there! Just fix the following issues
  • Do not include executable or dangerous files in your plugin
    • .exe - Executable in Windows
      • wp-content/plugins/marfeelpress/vendor/symfony/console/Resources/bin/hiddeninput.exe
65,676 lines of code in 1,187 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,14215,12830,57560,564
XSD392482,803
C22231941,083
YAML38933452
Sass14374294
Markdown6590151
SVG601122
C/C++ Header2192155
HTML19049
m42131246
make18030
JavaScript22016
reStructuredText1519
CSS2002

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 155)
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity7.91
▷ Minimum class complexity1.00
▷ Maximum class complexity165.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity155.00
Code structure
Namespaces174
Interfaces103
Traits2
Classes1,000
▷ Abstract classes626.20%
▷ Concrete classes93893.80%
▷ Final classes70.75%
Methods4,798
▷ Static methods2825.88%
▷ Public methods3,75478.24%
▷ Protected methods57712.03%
▷ Private methods4679.73%
Functions397
▷ Named functions10726.95%
▷ Anonymous functions29073.05%
Constants395
▷ Global constants297.34%
▷ Class constants36692.66%
▷ Public constants366100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin