10% carimbador-maluco

Code Review | Carimbador Maluco

WordPress plugin Carimbador Maluco scored10%from 54 tests.

About plugin

  • Plugin page: carimbador-maluco
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 6, 2018
  • Latest release: Jun 19, 2018
  • Number of updates: 10
  • Update frequency: every 1.5 days
  • Top authors: diegoperotto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /625 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/carimbador-maluco/FPDI/fpdf.php+1034
    Function get_magic_quotes_runtime() is deprecated

Server metrics [RAM: ▼1.93MB] [CPU: ▼51.85ms] Passed 4 tests

This is a short check of server-side resources used by Carimbador Maluco
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.51 ▼36.22
Dashboard /wp-admin2.07 ▼1.236.45 ▼42.50
Posts /wp-admin/edit.php2.07 ▼1.285.75 ▼33.56
Add New Post /wp-admin/post-new.php2.07 ▼3.816.55 ▼95.10
Media Library /wp-admin/upload.php2.07 ▼1.165.72 ▼30.32

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Carimbador Maluco: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.68 ▼0.631.89 ▲0.0044.62 ▼1.02
Dashboard /wp-admin2,224 ▲365.06 ▲0.18101.16 ▼19.2068.58 ▲22.19
Posts /wp-admin/edit.php2,127 ▲352.32 ▲0.3139.07 ▼3.1235.40 ▼1.13
Add New Post /wp-admin/post-new.php1,538 ▲2417.79 ▲0.29650.54 ▲32.5634.42 ▼15.85
Media Library /wp-admin/upload.php1,418 ▲304.39 ▲0.15121.50 ▲21.8144.38 ▲3.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/carimbador-maluco/FPDI/fpdf.php+1034
    Function get_magic_quotes_runtime() is deprecated
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
The following issues need your attention
  • 34× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Filter\\FilterException' not found in wp-content/plugins/carimbador-maluco/FPDI/src/PdfParser/Filter/FlateException.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/carimbador-maluco/FPDI/src/PdfParser/Type/PdfIndirectObjectReference.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'FPDF' not found in wp-content/plugins/carimbador-maluco/FPDI/src/FpdfTpl.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\FpdiException' not found in wp-content/plugins/carimbador-maluco/FPDI/src/PdfParser/PdfParserException.php:20
    • > PHP Warning
      Use of undefined constant CARIMBADOR_PLUGIN_FILE - assumed 'CARIMBADOR_PLUGIN_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/carimbador-maluco/includes/class_carimbador.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\CrossReference\\AbstractReader' not found in wp-content/plugins/carimbador-maluco/FPDI/src/PdfParser/CrossReference/LineReader.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/carimbador-maluco/FPDI/src/PdfParser/Type/PdfBoolean.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/carimbador-maluco/includes/pagina_configuracao.php:16
    • > PHP Fatal error
      require_once(): Failed opening required './FPDI/fpdf.php' (include_path='.:/usr/share/php') in wp-content/plugins/carimbador-maluco/includes/class_carimbador.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/carimbador-maluco/FPDI/src/PdfParser/Type/PdfIndirectObject.php:22

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 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: book, digitalcontent, pdf, protection, copyright...

carimbador-maluco/carimbador.php 85% from 13 tests

The main PHP script in "Carimbador Maluco" version 1.1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("carimbador-maluco.php" instead of "carimbador.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("3.8.0" instead of "4.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin5,924 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
PHP631,0472,4915,595
SVG111170
Markdown1290112
JavaScript18126
CSS10021

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity20.15
▷ Minimum class complexity1.00
▷ Maximum class complexity338.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces7
Interfaces2
Traits1
Classes43
▷ Abstract classes24.65%
▷ Concrete classes4195.35%
▷ Final classes00.00%
Methods285
▷ Static methods5920.70%
▷ Public methods20270.88%
▷ Protected methods7024.56%
▷ Private methods134.56%
Functions22
▷ Named functions1777.27%
▷ Anonymous functions522.73%
Constants46
▷ Global constants1021.74%
▷ Class constants3678.26%
▷ Public constants36100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/icon.png0.64KB1.05KB0.00%