84% demomentsomtres-gtm-for-admin

Code Review | DeMomentSomTres Debug Load Text Domain

WordPress plugin DeMomentSomTres Debug Load Text Domain scored84%from 54 tests.

About plugin

  • Plugin page: demomentsomtres-g...
  • Plugin version: 201903280000...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2015
  • Latest release: Mar 28, 2019
  • Number of updates: 6
  • Update frequency: every 203.0 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /749 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.18ms] Passed 4 tests

An overview of server-side resources used by DeMomentSomTres Debug Load Text Domain
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.73 ▼7.78
Dashboard /wp-admin3.32 ▲0.0145.09 ▼7.84
Posts /wp-admin/edit.php3.37 ▲0.0148.73 ▲1.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.61 ▼6.54
Media Library /wp-admin/upload.php3.24 ▲0.0135.13 ▲1.78

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for DeMomentSomTres Debug Load Text Domain
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲11714.51 ▼0.111.72 ▼0.1539.21 ▼9.42
Dashboard /wp-admin2,216 ▲285.91 ▲1.04112.86 ▼2.7043.18 ▼8.33
Posts /wp-admin/edit.php2,111 ▲222.00 ▼0.0237.96 ▲2.1539.43 ▲6.01
Add New Post /wp-admin/post-new.php1,374 ▼14618.81 ▼4.40506.17 ▼215.1642.68 ▼18.66
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.03107.55 ▼2.5639.34 ▼8.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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-gtm-for-admin/demomentsomtres-debug-loadtextdomain.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: loadtextdomain, mo, po, translation

demomentsomtres-gtm-for-admin/demomentsomtres-debug-loadtextdomain.php 85% from 13 tests

This is the main PHP file of "DeMomentSomTres Debug Load Text Domain" version 201903280000..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "201903280000...")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("demomentsomtres-gtm-for-admin.php" instead of "demomentsomtres-debug-loadtextdomain.php")

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 plugin19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102519

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
No PNG images were found in this plugin