78% demomentsomtres-language

Code Review | DeMomentSomTres Language

WordPress plugin DeMomentSomTres Language scored78%from 54 tests.

About plugin

  • Plugin page: demomentsomtres-l...
  • Plugin version: 4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.4
  • WordPress version: 6.3.1
  • First release: Jun 26, 2012
  • Latest release: Mar 20, 2018
  • Number of updates: 96
  • Update frequency: every 21.9 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,000 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.41MB] [CPU: ▼7.90ms] Passed 4 tests

Server-side resources used by DeMomentSomTres Language
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4444.16 ▲1.18
Dashboard /wp-admin3.76 ▲0.4153.33 ▼12.02
Posts /wp-admin/edit.php3.81 ▲0.4553.60 ▲3.03
Add New Post /wp-admin/post-new.php6.28 ▲0.3986.43 ▼17.04
Media Library /wp-admin/upload.php3.62 ▲0.3938.50 ▼3.71
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.8335.92

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

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

Browser metrics Passed 4 tests

DeMomentSomTres Language: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.73 ▲0.201.81 ▲0.0543.47 ▼1.85
Dashboard /wp-admin2,222 ▲425.54 ▼0.1382.76 ▼8.6144.89 ▲4.99
Posts /wp-admin/edit.php2,139 ▲422.01 ▼0.0134.59 ▼2.2238.11 ▲1.50
Add New Post /wp-admin/post-new.php1,553 ▲2723.01 ▼0.15685.34 ▼16.1651.97 ▼13.97
Media Library /wp-admin/upload.php1,441 ▲444.23 ▲0.0597.86 ▼2.9444.30 ▼2.92
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins9742.0628.1031.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/demomentsomtres-language/demomentsomtres_language.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/demomentsomtres-language/lib/class-tgm-plugin-activation.php:2109

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("//www.demomentsomtres.com/en/wordpress-plugins/demomentsomtres-language/")
Please take inspiration from this readme.txt

demomentsomtres-language/demomentsomtres_language.php 92% from 13 tests

The main PHP file in "DeMomentSomTres Language" ver. 4.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("demomentsomtres-language.php" instead of "demomentsomtres_language.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,907 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24951,6311,832
JavaScript115675

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity42.62
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods106
▷ Static methods54.72%
▷ Public methods8378.30%
▷ Protected methods2321.70%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin