10% demomentsomtres-escapadarural-review

Code Review | DeMomentSomTres Review EscapadaRural

WordPress plugin DeMomentSomTres Review EscapadaRural scored10%from 54 tests.

About plugin

  • Plugin page: demomentsomtres-e...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.3
  • WordPress version: 6.3.1
  • First release: Sep 10, 2014
  • Latest release: Nov 12, 2015
  • Number of updates: 4
  • Update frequency: every 115.5 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /824 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/demomentsomtres-escapadarural-review/demomentsomtres-review-escapadaRural.php+166
    Methods with the same name as their class will not be constructors in a future version of PHP; DeMomentSomTresReviewEscapadaRuralWidget has a deprecated constructor

Server metrics [RAM: ▼1.72MB] [CPU: ▼50.32ms] Passed 4 tests

This is a short check of server-side resources used by DeMomentSomTres Review EscapadaRural
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.189.72 ▼28.91
Dashboard /wp-admin2.29 ▼1.0511.68 ▼48.20
Posts /wp-admin/edit.php2.30 ▼1.069.82 ▼36.39
Add New Post /wp-admin/post-new.php2.30 ▼3.5913.16 ▼87.78
Media Library /wp-admin/upload.php2.30 ▼0.939.34 ▼26.37

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_dms3reviewer
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by DeMomentSomTres Review EscapadaRural
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.414.56 ▲2.8243.10 ▲0.48
Dashboard /wp-admin2,206 ▲184.84 ▼0.06116.94 ▲14.1341.14 ▼0.13
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0133.80 ▼8.0534.24 ▼0.58
Add New Post /wp-admin/post-new.php1,542 ▲1318.29 ▲0.18631.04 ▲2.4055.76 ▼4.74
Media Library /wp-admin/upload.php1,391 ▲64.23 ▲0.0497.48 ▼2.3341.31 ▼2.24

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 did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in DeMomentSomTresReviewEscapadaRuralWidget is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_dms3reviewer
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • 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 | 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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/demomentsomtres-escapadarural-review/demomentsomtres-review-escapadaRural.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
3 plugin tags: tourism, escapadarural, review

demomentsomtres-escapadarural-review/demomentsomtres-review-escapadaRural.php 85% from 13 tests

This is the main PHP file of "DeMomentSomTres Review EscapadaRural" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("demomentsomtres-escapadarural-review.php" instead of "demomentsomtres-review-escapadaRural.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("3.9.1" instead of "3.9")

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
There were no executable files found in this plugin216 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12355142
PO File2183274

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity4.50
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods538.46%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants120.00%
▷ Class constants480.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin