84% gen-europe-clips

Code Review | GEN Europe CLIPS Wordpress plugin

WordPress plugin GEN Europe CLIPS Wordpress plugin scored84%from 54 tests.

About plugin

  • Plugin page: gen-europe-clips
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Oct 7, 2016
  • Latest release: Nov 6, 2016
  • Number of updates: 23
  • Update frequency: every 1.7 days
  • Top authors: qrof (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /748 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼0.57ms] Passed 4 tests

An overview of server-side resources used by GEN Europe CLIPS Wordpress plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.91 ▼0.37
Dashboard /wp-admin3.48 ▲0.1746.34 ▼2.61
Posts /wp-admin/edit.php3.59 ▲0.2452.09 ▲0.34
Add New Post /wp-admin/post-new.php6.06 ▲0.1796.04 ▲1.21
Media Library /wp-admin/upload.php3.40 ▲0.1735.73 ▲0.35
CLIPS Settings /wp-admin/options-general.php?page=clips-setting-admin3.3734.18

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for GEN Europe CLIPS Wordpress plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲16414.61 ▲0.2320.97 ▲19.1936.06 ▼12.39
Dashboard /wp-admin2,199 ▲195.65 ▼0.0392.26 ▲5.4241.86 ▲0.75
Posts /wp-admin/edit.php2,101 ▲12.01 ▲0.0139.57 ▲1.8534.01 ▼3.88
Add New Post /wp-admin/post-new.php1,554 ▲2718.38 ▼4.82633.39 ▼57.2064.00 ▲12.28
Media Library /wp-admin/upload.php1,404 ▲44.17 ▲0.0495.57 ▼10.0947.40 ▲0.64
CLIPS Settings /wp-admin/options-general.php?page=clips-setting-admin8562.0022.1131.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gen-europe-clips/geneurope-clips.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/gen-europe-clips/project.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/gen-europe-clips/resource.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/gen-europe-clips/event.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: gen-europe, events, projects

gen-europe-clips/geneurope-clips.php 92% from 13 tests

The entry point to "GEN Europe CLIPS Wordpress plugin" version 1.4.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gen-europe-clips.php" instead of "geneurope-clips.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,626 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP62451721,470
Markdown148067
CSS121662
JavaScript13427

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity19.00
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods40
▷ Static methods2767.50%
▷ Public methods3792.50%
▷ Protected methods00.00%
▷ Private methods37.50%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants3
▷ Global constants3100.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
No PNG files were detected