78% nooz

Code Review | Nooz

WordPress plugin Nooz scored 78% from 54 tests.

About plugin

  • Plugin page: nooz
  • Plugin version: 1.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2014
  • Latest release: Feb 23, 2023
  • Number of updates: 97
  • Update frequency: every 30.8 days
  • Top authors: mightydigital (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

900+ active / 20,794 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.71MB] [CPU: ▲5.00ms] Passed 4 tests

An overview of server-side resources used by Nooz
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.19 ▲0.7345.38 ▲5.19
Dashboard /wp-admin4.06 ▲0.7657.08 ▲5.50
Posts /wp-admin/edit.php4.11 ▲0.7660.01 ▲13.46
Add New Post /wp-admin/post-new.php6.57 ▲0.6991.17 ▲2.41
Media Library /wp-admin/upload.php3.90 ▲0.6740.77 ▲6.91
All Releases /wp-admin/edit.php?post_type=nooz_release4.0744.91
All Coverage /wp-admin/edit.php?post_type=nooz_coverage4.0745.25
Settings /wp-admin/admin.php?page=nooz3.9739.50
Add New Coverage /wp-admin/post-new.php?post_type=nooz_coverage4.0551.67
Add New Release /wp-admin/post-new.php?post_type=nooz_release4.1065.29

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 88 new files
Database: no new tables, 38 new options
New WordPress options
mdnooz_coverage_default_image_url
mdnooz_release_ending
mdnooz_upgrade_coverage_post_meta
mdnooz_shortcode_count
theysaidso_admin_options
mdnooz_shortcode_more_link
mdnooz_plugin_version
mdnooz_shortcode_date_format
mdnooz_coverage_slug
mdnooz_upgrade_post_priority
...

Browser metrics Passed 4 tests

Nooz: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,041 ▲30614.82 ▲0.462.55 ▲0.7543.07 ▼2.59
Dashboard /wp-admin2,403 ▲2156.46 ▲1.50133.22 ▲28.0338.22 ▼8.17
Posts /wp-admin/edit.php2,317 ▲2283.50 ▲1.4551.95 ▲11.0930.23 ▼3.89
Add New Post /wp-admin/post-new.php1,572 ▲3923.45 ▲0.55645.82 ▼24.5636.53 ▼17.14
Media Library /wp-admin/upload.php1,454 ▲664.16 ▼0.0479.36 ▼22.1941.12 ▼2.19
All Releases /wp-admin/edit.php?post_type=nooz_release1,8853.4750.5926.69
All Coverage /wp-admin/edit.php?post_type=nooz_coverage1,8913.4745.8626.61
Settings /wp-admin/admin.php?page=nooz1,8293.1144.1726.49
Add New Coverage /wp-admin/post-new.php?post_type=nooz_coverage2,4413.8068.7632.11
Add New Release /wp-admin/post-new.php?post_type=nooz_release3,0788.25173.9674.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 38 options in the database
    • theysaidso_admin_options
    • mdnooz_shortcode_use_more_link
    • widget_theysaidso_widget
    • mdnooz_release_dateline_format
    • mdnooz_shortcode_use_pagination
    • mdnooz_shortcode_theme
    • mdnooz_coverage_default_image_url
    • mdnooz_release_date_format
    • mdnooz_release_boilerplate
    • mdnooz_upgrade_coverage_post_meta
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/nooz/themes/outline/release.php
    • > /wp-content/plugins/nooz/themes/basic/release.php
    • > /wp-content/plugins/nooz/themes/outline/taxonomies.php
  • 42× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/nooz/themes/outline/ajax_items.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nooz/themes/basic/parts/post-date.php:1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/nooz/themes/basic/view.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/nooz/themes/basic/post.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'MightyDev\ooz\\Base' not found in wp-content/plugins/nooz/inc/class-release.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/nooz/themes/outline/view.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/nooz/inc/templates/coverage-source-meta.php:6
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/nooz/themes/outline/pagination.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nooz/themes/outline/post.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/nooz/themes/basic/theme.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: press coverage, press release, press, media coverage, news...

nooz/nooz.php 92% from 13 tests

Analyzing the main PHP file in "Nooz" version 1.7.0
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,599 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
PHP472195382,412
Sass1355724
JavaScript8974270
HTML440189
CSS4444

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity28.89
▷ Minimum class complexity6.00
▷ Maximum class complexity74.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods138
▷ Static methods10.72%
▷ Public methods11281.16%
▷ Protected methods2618.84%
▷ Private methods00.00%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected