77% winddoc-no-profit

Code Review | WindDoc No-Profit

WordPress plugin WindDoc No-Profit scored77%from 54 tests.

About plugin

  • Plugin page: winddoc-no-profit
  • Plugin version: 2.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 30, 2020
  • Latest release: Jan 2, 2023
  • Number of updates: 45
  • Update frequency: every 19.7 days
  • Top authors: morriluca (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /486 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.08MB] [CPU: ▲1.71ms] Passed 4 tests

A check of server-side resources used by WindDoc No-Profit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0843.68 ▲3.64
Dashboard /wp-admin3.38 ▲0.0852.17 ▲3.89
Posts /wp-admin/edit.php3.50 ▲0.1451.44 ▼1.33
Add New Post /wp-admin/post-new.php5.97 ▲0.08101.97 ▲7.76
Media Library /wp-admin/upload.php3.31 ▲0.0838.15 ▲0.63

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WindDoc No-Profit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.00 ▼0.351.67 ▼0.0246.47 ▲3.67
Dashboard /wp-admin2,194 ▲245.55 ▼0.05106.92 ▲3.0772.85 ▲34.19
Posts /wp-admin/edit.php2,111 ▲82.00 ▲0.0037.39 ▼3.0933.03 ▼0.41
Add New Post /wp-admin/post-new.php1,536 ▲123.74 ▲5.46695.11 ▲54.1753.88 ▼11.72
Media Library /wp-admin/upload.php1,411 ▲144.22 ▼0.0395.96 ▼9.0676.06 ▲30.43

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/winddoc-no-profit/template/lista_eventi.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/winddoc-no-profit/template/lista_eventi.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/winddoc-no-profit/winddocnoprofit.php:21
    • > PHP Notice
      Undefined variable: lista_eventi in wp-content/plugins/winddoc-no-profit/template/lista_eventi.php on line 3
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/winddoc-no-profit/template/lista_eventi.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
These attributes need your attention: The official readme.txt is a good inspiration

winddoc-no-profit/winddocnoprofit.php 77% from 13 tests

The principal PHP file in "WindDoc No-Profit" v. 2.2 is loaded by WordPress automatically on each request
It is important to 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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("winddoc-no-profit.php" instead of "winddocnoprofit.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "6.1.1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin7,008 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11,9846,9956,355
PHP421534652
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity8.67
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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