74% dinatur

Code Review | Dinatur

WordPress plugin Dinatur scored 74% from 54 tests.

About plugin

  • Plugin page: dinatur
  • Plugin version: 1.18
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.4
  • WordPress version: 6.3.1
  • First release: Feb 3, 2016
  • Latest release: Feb 13, 2017
  • Number of updates: 19
  • Update frequency: every 19.8 days
  • Top authors: woofer696 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,099 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.24ms] Passed 4 tests

Server-side resources used by Dinatur
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.85 ▼4.82
Dashboard /wp-admin3.40 ▲0.1048.14 ▲1.54
Posts /wp-admin/edit.php3.51 ▲0.1651.28 ▲1.98
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.10 ▼15.65
Media Library /wp-admin/upload.php3.32 ▲0.0938.65 ▲2.33

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: 2 new tables, 6 new options
New tables
wp_dintextos
wp_dinatur
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Dinatur
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,044 ▲30913.87 ▼0.7611.20 ▲9.1135.15 ▼17.66
Dashboard /wp-admin2,255 ▲675.87 ▼0.02102.70 ▲2.5445.55 ▲0.05
Posts /wp-admin/edit.php2,141 ▲492.01 ▲0.0137.93 ▼2.7145.83 ▲11.38
Add New Post /wp-admin/post-new.php1,552 ▲1722.88 ▼0.19502.25 ▼97.4236.62 ▼21.30
Media Library /wp-admin/upload.php1,437 ▲464.15 ▲0.0497.95 ▼5.5345.40 ▲1.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_dinatur
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/dinatur/Dinatur.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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
2 plugin tags: multilingual, ajax

dinatur/Dinatur.php 92% from 13 tests

The main file in "Dinatur" v. 1.18 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dinatur.php" instead of "Dinatur.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,479 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP25590568
CSS45022543
JavaScript43233368

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icono/Calendario.png0.83KB0.60KB▼ 28.12%
icono/Lupa.png0.96KB0.72KB▼ 24.41%
icono/arrow.png0.44KB0.28KB▼ 36.59%