72% 90-in-90

Code Review | Ninety in Ninety

WordPress plugin Ninety in Ninety scored 72% from 54 tests.

About plugin

  • Plugin page: 90-in-90
  • Plugin version: 0.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8.1
  • WordPress version: 5.8.1
  • First release: Sep 29, 2019
  • Latest release: Sep 18, 2021
  • Number of updates: 19
  • Update frequency: every 39.6 days
  • Top authors: machouinard (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 631 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲3.72MB] [CPU: ▼141.15ms] Passed 4 tests

Server-side resources used by Ninety in Ninety
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /6.38 ▲3.5548.91 ▲22.35
Dashboard /wp-admin6.80 ▲3.7456.69 ▲14.93
Posts /wp-admin/edit.php6.90 ▲3.7957.62 ▲19.57
Add New Post /wp-admin/post-new.php9.24 ▲3.80100.32 ▼621.44
Media Library /wp-admin/upload.php6.83 ▲3.8350.11 ▲24.08
Meeting Locations /wp-admin/edit-tags.php?taxonomy=ninety_meeting_location&post_type=ninety_meeting6.8248.70
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools6.8252.90
Add New /wp-admin/post-new.php?post_type=ninety_meeting6.9769.76
Field Groups /wp-admin/edit.php?post_type=acf-field-group6.8251.24
Meeting Types /wp-admin/edit-tags.php?taxonomy=ninety_meeting_type&post_type=ninety_meeting6.8150.42
All Meetings /wp-admin/edit.php?post_type=ninety_meeting6.8049.48
Add New /wp-admin/post-new.php?post_type=acf-field-group6.9061.93
Info /wp-admin/edit.php?post_type=acf-field-group&page=acf-settings-info6.7655.52
Options /wp-admin/edit.php?post_type=ninety_meeting&page=ninety-settings6.7045.53

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 341 new files
Database: no new tables, 5 new options
New WordPress options
widget_ninety-meeting-calendar
widget_ninety-meeting-archives
acf_version
ninety_last_updated
ninety_meeting_count

Browser metrics Passed 4 tests

A check of browser resources used by Ninety in Ninety
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,998 ▼60315.98 ▼0.0935.05 ▲28.9379.28 ▲2.55
Dashboard /wp-admin2,257 ▼6396.67 ▲0.4687.93 ▼46.31166.01 ▼11.25
Posts /wp-admin/edit.php2,205 ▼5353.26 ▲0.0235.91 ▼26.94139.04 ▼0.85
Add New Post /wp-admin/post-new.php4,402 ▲59523.94 ▲5.32537.22 ▲74.39159.46 ▼6.93
Media Library /wp-admin/upload.php2,059 ▲30710.24 ▲4.66189.76 ▲49.29197.87 ▲9.97
Meeting Locations /wp-admin/edit-tags.php?taxonomy=ninety_meeting_location&post_type=ninety_meeting1,5063.8551.05135.60
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools1,1503.6351.28140.02
Add New /wp-admin/post-new.php?post_type=ninety_meeting3,86613.78289.81234.30
Field Groups /wp-admin/edit.php?post_type=acf-field-group1,3113.6851.04139.35
Meeting Types /wp-admin/edit-tags.php?taxonomy=ninety_meeting_type&post_type=ninety_meeting1,7093.9638.94138.41
All Meetings /wp-admin/edit.php?post_type=ninety_meeting1,2333.3034.75122.21
Add New /wp-admin/post-new.php?post_type=acf-field-group2,3005.0777.88207.63
Info /wp-admin/edit.php?post_type=acf-field-group&page=acf-settings-info1,1712.9428.29215.70
Options /wp-admin/edit.php?post_type=ninety_meeting&page=ninety-settings2,0033.4548.19126.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 5 options
    • ninety_last_updated
    • widget_ninety-meeting-calendar
    • widget_ninety-meeting-archives
    • ninety_meeting_count
    • acf_version

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 46 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ninety_meeting&page=ninety-settings
    • > Notice in wp-content/plugins/90-in-90/inc/class-options-page.php+570
    Trying to access array offset on value of type bool

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/90-in-90/inc/mapbox/test.php
  • 105× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/90-in-90/inc/acf/includes/fields/class-acf-field-password.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/90-in-90/inc/acf/includes/fields/class-acf-field-tab.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/90-in-90/inc/acf/includes/fields/class-acf-field-separator.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/90-in-90/inc/acf/includes/fields/class-acf-field-message.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/90-in-90/inc/acf/includes/forms/form-attachment.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/90-in-90/inc/acf/includes/forms/form-taxonomy.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/90-in-90/inc/class-widget-meeting-archives.php:11
    • > PHP Notice
      Undefined variable: field in wp-content/plugins/90-in-90/inc/acf/includes/admin/views/field-group-field.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_add_deprecated_filter() in wp-content/plugins/90-in-90/inc/acf/includes/deprecated.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/90-in-90/child-themes/nineteen-child/functions.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: recovery, alcoholics anonymous, na, aa

90-in-90/ninety-ninety.php 85% from 13 tests

The main PHP file in "Ninety in Ninety" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("90-in-90.php" instead of "ninety-ninety.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin110,392 lines of code in 254 files:
LanguageFilesBlank linesComment linesLines of code
PO File3021,68835,42145,780
JavaScript1912,34213,77139,884
PHP18011,84018,82421,662
CSS182751112,298
HTML2280407
Markdown3870207
JSON100124
SVG118030

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity16.66
▷ Minimum class complexity1.00
▷ Maximum class complexity338.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes116
▷ Abstract classes10.86%
▷ Concrete classes11599.14%
▷ Final classes00.00%
Methods930
▷ Static methods121.29%
▷ Public methods86893.33%
▷ Protected methods515.48%
▷ Private methods111.18%
Functions445
▷ Named functions445100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants1990.48%
▷ Class constants29.52%
▷ Public constants2100.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
14 compressed PNG files occupy 0.48MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
child-themes/primer-child/screenshot.png302.45KB305.79KB0.00%
inc/acf/assets/inc/select2/3/select2x2.png0.64KB0.77KB0.00%
inc/acf/assets/inc/datepicker/images/ui-icons_444444_256x240.png3.68KB4.17KB0.00%
inc/acf/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png3.68KB4.17KB0.00%
assets/js/leaflet/images/layers-2x.png1.23KB1.67KB0.00%