78% wp-dpe-ges

Code Review | WP DPE-GES

WordPress plugin WP DPE-GES scored78%from 54 tests.

About plugin

  • Plugin page: wp-dpe-ges
  • Plugin version: 1.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8.3
  • WordPress version: 6.3.1
  • First release: Oct 11, 2017
  • Latest release: May 20, 2022
  • Number of updates: 26
  • Update frequency: every 64.7 days
  • Top authors: sebastienrenaudeau (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

700+ active /3,793 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.80ms] Passed 4 tests

Server-side resources used by WP DPE-GES
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.65 ▼4.27
Dashboard /wp-admin3.32 ▲0.0247.03 ▼3.62
Posts /wp-admin/edit.php3.38 ▲0.0247.98 ▼2.24
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.94 ▼1.06
Media Library /wp-admin/upload.php3.25 ▲0.0236.68 ▲0.52
DPE / GES /wp-admin/options-general.php?page=wpdpeges3.2132.92

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP DPE-GES
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.23 ▼0.391.74 ▼0.3244.04 ▲2.47
Dashboard /wp-admin2,201 ▲245.63 ▲0.0389.68 ▲1.7137.57 ▼6.16
Posts /wp-admin/edit.php2,109 ▲91.95 ▼0.0441.38 ▲4.9535.98 ▼1.17
Add New Post /wp-admin/post-new.php6,371 ▲4,84227.75 ▲4.96822.93 ▲198.4855.79 ▲5.37
Media Library /wp-admin/upload.php1,406 ▲34.39 ▲0.2599.00 ▼4.7944.34 ▼1.64
DPE / GES /wp-admin/options-general.php?page=wpdpeges8881.9821.9826.80

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-dpe-ges/shortcode/dpeges-template.php
  • 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-dpe-ges/TinyMCE/tiny-mce-locale.php on line 5
    • > PHP Notice
      Undefined variable: displayGES in wp-content/plugins/wp-dpe-ges/shortcode/dpeges-template.php on line 71
    • > PHP Notice
      Undefined variable: ges_value in wp-content/plugins/wp-dpe-ges/shortcode/newdpeges-template.php on line 3
    • > PHP Notice
      Undefined variable: ges_value in wp-content/plugins/wp-dpe-ges/shortcode/newdpeges-template.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dpe-ges/wp-dpe-ges.php:32
    • > PHP Warning
      require(ABSPATHWPINC/class-wp-editor.php): failed to open stream: No such file or directory in wp-content/plugins/wp-dpe-ges/TinyMCE/tiny-mce-locale.php on line 5
    • > PHP Notice
      Undefined variable: dpe_value in wp-content/plugins/wp-dpe-ges/shortcode/newdpeges-template.php on line 7
    • > PHP Notice
      Undefined variable: shortcode in wp-content/plugins/wp-dpe-ges/shortcode/dpeges-template.php on line 13
    • > PHP Notice
      Undefined variable: displayDPE in wp-content/plugins/wp-dpe-ges/shortcode/dpeges-template.php on line 18
    • > PHP Notice
      Undefined variable: displayInline in wp-content/plugins/wp-dpe-ges/shortcode/dpeges-template.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #6 (Une valeur vide affichera un DPE ou GES vierge) image not found
The official readme.txt might help

wp-dpe-ges/wp-dpe-ges.php 92% from 13 tests

The main PHP file in "WP DPE-GES" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin2,032 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
Sass2160902
JavaScript84196527
PHP82476411
PO File164124145
JSON70046
CSS2101

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
TinyMCE/images/tinymce-dpeges.png4.55KB2.64KB▼ 41.88%
TinyMCE/images/tinymce-ges.png3.32KB2.17KB▼ 34.71%
TinyMCE/images/tinymce-dpe.png2.39KB1.95KB▼ 18.65%