84% god-willing

Code Review | God Willing

WordPress plugin God Willing scored84%from 54 tests.

About plugin

  • Plugin page: god-willing
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 21, 2021
  • Latest release: Oct 21, 2021
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: miminou (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /242 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.06ms] Passed 4 tests

Server-side resources used by God Willing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.27 ▼0.21
Dashboard /wp-admin3.31 ▲0.0046.54 ▼8.27
Posts /wp-admin/edit.php3.36 ▲0.0047.40 ▲0.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.46 ▼7.79
Media Library /wp-admin/upload.php3.23 ▲0.0038.38 ▲2.34

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by God Willing
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /6,717 ▲3,95613.60 ▼0.9811.56 ▲9.9247.15 ▲1.38
Dashboard /wp-admin2,224 ▲184.85 ▼1.05107.08 ▲2.5440.77 ▼0.68
Posts /wp-admin/edit.php2,103 ▼01.98 ▼0.0335.52 ▼1.3232.03 ▼2.90
Add New Post /wp-admin/post-new.php1,545 ▲1423.37 ▲0.16668.84 ▲5.6050.24 ▲0.55
Media Library /wp-admin/upload.php1,400 ▼04.23 ▼0.03108.22 ▲4.8046.54 ▲0.24

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

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/god-willing/god-willing.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

god-willing/god-willing.php Passed 13 tests

The main PHP script in "God Willing" version 1.0.0 is automatically included on every request by WordPress
71 characters long description:
Rectify and edit the words mean إن شاء الله writed in bad way.

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
Everything looks great! No dangerous files found in this plugin26 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11019
PHP1477

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin