84% gwirydd

Code Review | Gwirydd Sillafu Cymraeg

WordPress plugin Gwirydd Sillafu Cymraeg scored84%from 54 tests.

About plugin

  • Plugin page: gwirydd
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6.2
  • WordPress version: 6.3.1
  • First release: Feb 23, 2021
  • Latest release: Feb 26, 2021
  • Number of updates: 5
  • Update frequency: every 2.0 days
  • Top authors: stanno (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /400 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Gwirydd Sillafu Cymraeg
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.47 ▼6.49
Dashboard /wp-admin3.33 ▲0.0346.29 ▼7.61
Posts /wp-admin/edit.php3.38 ▲0.0249.11 ▼6.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.12 ▼6.58
Media Library /wp-admin/upload.php3.25 ▲0.0233.85 ▼3.54
Gwirydd Sillafu /wp-admin/options-general.php?page=gwirydd3.2532.93

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Gwirydd Sillafu Cymraeg
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.14 ▼1.452.05 ▼0.3739.43 ▼4.95
Dashboard /wp-admin2,210 ▲284.88 ▼1.13109.20 ▼15.0745.08 ▼1.64
Posts /wp-admin/edit.php2,090 ▼21.99 ▼0.0238.64 ▼3.6636.00 ▲1.35
Add New Post /wp-admin/post-new.php1,543 ▲2323.35 ▲2.23686.05 ▼38.8180.11 ▲5.93
Media Library /wp-admin/upload.php1,386 ▼54.14 ▼0.0595.79 ▼13.7243.24 ▼4.99
Gwirydd Sillafu /wp-admin/options-general.php?page=gwirydd8522.0229.3333.23

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/gwirydd/gosodiadau.php:15

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 Passed 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
6 plugin tags: welsh, grammar, cymraeg, sillafu, spelling...

gwirydd/gwirydd.php Passed 13 tests

The main PHP script in "Gwirydd Sillafu Cymraeg" version 1.3 is automatically included on every request by WordPress
63 characters long description:
Gwirio sillafu a gramadeg gydag adnodd Cysill Prifysgol Bangor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin871 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript27022579
PHP37625237
CSS20055

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions18
▷ Named functions316.67%
▷ Anonymous functions1583.33%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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 files were detected