84% family-wiki

Code Review | Family Wiki

WordPress plugin Family Wiki scored84%from 54 tests.

About plugin

  • Plugin page: family-wiki
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 9, 2022
  • Latest release: Oct 29, 2022
  • Number of updates: 7
  • Update frequency: every 7.3 days
  • Top authors: akirk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /199 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼2.15ms] Passed 4 tests

A check of server-side resources used by Family Wiki
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1639.11 ▼4.24
Dashboard /wp-admin3.43 ▲0.1348.70 ▲1.88
Posts /wp-admin/edit.php3.55 ▲0.1950.18 ▼3.15
Add New Post /wp-admin/post-new.php6.03 ▲0.1493.77 ▲5.20
Media Library /wp-admin/upload.php3.35 ▲0.1334.88 ▼3.07

Server storage [IO: ▲0.04MB] [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: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Family Wiki: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.71 ▼0.671.72 ▲0.0341.14 ▼2.28
Dashboard /wp-admin2,206 ▲154.87 ▼0.02102.63 ▲1.7141.13 ▼2.57
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0340.03 ▼0.6934.70 ▼1.49
Add New Post /wp-admin/post-new.php6,189 ▲4,65521.83 ▼1.39856.47 ▲258.2176.95 ▲24.43
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0294.44 ▼6.7740.84 ▼5.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Family_Wiki\\add_action() in wp-content/plugins/family-wiki/class-calendar.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
2 plugin tags: family, wiki

family-wiki/family-wiki.php Passed 13 tests

The main PHP script in "Family Wiki" version 1.0.0 is automatically included on every request by WordPress
55 characters long description:
Keep your family history in a wiki hosted on WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected499 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP57323471
JavaScript20028

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity21.75
▷ Minimum class complexity16.00
▷ Maximum class complexity30.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods2191.30%
▷ Protected methods00.00%
▷ Private methods28.70%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There were not PNG files found in your plugin