72% 90-in-90

Code Review | Ninety in Ninety

WordPress plugin Ninety in Ninety scored72%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: 6.3.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 /928 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲1.20MB] [CPU: ▼3.98ms] Passed 4 tests

A check of server-side resources used by Ninety in Ninety
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.57 ▲1.1141.42 ▼1.79
Dashboard /wp-admin4.53 ▲1.1952.88 ▼9.12
Posts /wp-admin/edit.php4.59 ▲1.2454.15 ▲2.64
Add New Post /wp-admin/post-new.php7.16 ▲1.2794.48 ▼7.66
Media Library /wp-admin/upload.php4.47 ▲1.2544.16 ▲4.16
Info /wp-admin/edit.php?post_type=acf-field-group&page=acf-settings-info4.4441.30
Field Groups /wp-admin/edit.php?post_type=acf-field-group4.4644.83
Meeting Types /wp-admin/edit-tags.php?taxonomy=ninety_meeting_type&post_type=ninety_meeting4.4743.06
All Meetings /wp-admin/edit.php?post_type=ninety_meeting4.4538.36
Meeting Locations /wp-admin/edit-tags.php?taxonomy=ninety_meeting_location&post_type=ninety_meeting4.4742.05
Options /wp-admin/edit.php?post_type=ninety_meeting&page=ninety-settings4.3434.91
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools4.4338.72
Add New /wp-admin/post-new.php?post_type=ninety_meeting4.7166.92
Add New /wp-admin/post-new.php?post_type=acf-field-group4.6157.75

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 341 new files
Database: no new tables, 12 new options
New WordPress options
widget_ninety-meeting-archives
widget_ninety-meeting-calendar
widget_recent-comments
ninety_meeting_count
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
acf_version
can_compress_scripts
...

Browser metrics Passed 4 tests

A check of browser resources used by Ninety in Ninety
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲20913.68 ▼1.011.72 ▼0.3147.41 ▲6.37
Dashboard /wp-admin2,361 ▲1735.24 ▲0.29106.20 ▲4.4341.16 ▼1.59
Posts /wp-admin/edit.php2,210 ▲1182.42 ▲0.3946.12 ▲6.8039.36 ▲2.62
Add New Post /wp-admin/post-new.php6,716 ▲5,18729.56 ▲6.811,070.07 ▲394.3341.31 ▼14.03
Media Library /wp-admin/upload.php2,016 ▲6348.27 ▲4.05217.40 ▲110.6948.74 ▲1.25
Info /wp-admin/edit.php?post_type=acf-field-group&page=acf-settings-info1,1382.2429.4370.93
Field Groups /wp-admin/edit.php?post_type=acf-field-group1,2753.0858.2441.87
Meeting Types /wp-admin/edit-tags.php?taxonomy=ninety_meeting_type&post_type=ninety_meeting1,7213.0545.9333.17
All Meetings /wp-admin/edit.php?post_type=ninety_meeting1,2012.5135.4528.89
Meeting Locations /wp-admin/edit-tags.php?taxonomy=ninety_meeting_location&post_type=ninety_meeting1,4343.1250.2830.81
Options /wp-admin/edit.php?post_type=ninety_meeting&page=ninety-settings1,7872.4347.8026.24
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools1,1142.9239.7033.93
Add New /wp-admin/post-new.php?post_type=ninety_meeting3,1779.46295.6093.19
Add New /wp-admin/post-new.php?post_type=acf-field-group2,2533.7083.9150.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 12 options
    • widget_ninety-meeting-calendar
    • widget_recent-posts
    • acf_version
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • ninety_meeting_count
    • ninety_last_updated
    • widget_ninety-meeting-search
    • widget_ninety-meeting-archives
    • ...

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
Smoke test failed, please fix the following
  • 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 | 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 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 have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: argv in wp-content/plugins/90-in-90/inc/mapbox/test.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/90-in-90/inc/acf/includes/fields/class-acf-field-user.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/90-in-90/inc/acf/includes/acf-value-functions.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/90-in-90/inc/widget-meeting-calendar.php:11
    • > PHP Notice
      Undefined variable: rule in wp-content/plugins/90-in-90/inc/acf/includes/admin/views/html-location-rule.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/90-in-90/child-themes/primer-child/single-ninety_meeting.php:12
    • > PHP Notice
      Trying to access array offset on value of type null 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 the_ID() in wp-content/plugins/90-in-90/child-themes/nineteen-child/template-parts/content/content-excerpt-ninety_meeting.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/90-in-90/inc/acf/includes/fields/class-acf-field-file.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/90-in-90/templates/archive-ninety_meeting.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: aa, alcoholics anonymous, na, recovery

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

The main PHP script in "Ninety in Ninety" version 0.1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("90-in-90.php" instead of "ninety-ninety.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected110,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

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.48MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/acf/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png3.68KB4.17KB0.00%
child-themes/primer-child/screenshot.png302.45KB305.79KB0.00%
inc/acf/assets/images/acf-logo.png3.40KB3.39KB0.23%
inc/acf/assets/inc/datepicker/images/ui-icons_ffffff_256x240.png3.68KB4.17KB0.00%
assets/js/leaflet/images/layers.png0.68KB1.05KB0.00%