72% ngo-production

Code Review | NGO Production

WordPress plugin NGO Production scored72%from 54 tests.

About plugin

  • Plugin page: ngo-production
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Sep 6, 2016
  • Latest release: Dec 14, 2016
  • Number of updates: 5
  • Update frequency: every 20.0 days
  • Top authors: joje47 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /654 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.06MB] [CPU: ▼14.63ms] Passed 4 tests

An overview of server-side resources used by NGO Production
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.79 ▼4.79
Dashboard /wp-admin3.31 ▼0.0333.36 ▼35.39
Posts /wp-admin/edit.php3.38 ▲0.0243.64 ▼3.20
Add New Post /wp-admin/post-new.php5.57 ▼0.3282.26 ▼15.13
Media Library /wp-admin/upload.php3.32 ▲0.0934.74 ▲3.62
Production genre /wp-admin/edit-tags.php?taxonomy=production_category&post_type=production3.3032.37
Add New /wp-admin/post-new.php?post_type=production3.3948.68
Venues /wp-admin/edit-tags.php?taxonomy=production_scenes&post_type=production3.3030.37
All Productions /wp-admin/edit.php?post_type=production3.3636.44
Actors /wp-admin/edit-tags.php?taxonomy=production_actors&post_type=production3.3034.13

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for NGO Production
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.75 ▲0.401.77 ▲0.0249.13 ▲5.67
Dashboard /wp-admin2,240 ▲695.61 ▼0.0585.62 ▼6.4243.61 ▼2.58
Posts /wp-admin/edit.php2,142 ▲422.03 ▼0.1134.77 ▼7.2438.52 ▲3.36
Add New Post /wp-admin/post-new.php1,461 ▼7918.28 ▼0.06577.21 ▼65.9352.06 ▼5.70
Media Library /wp-admin/upload.php1,436 ▲364.21 ▲0.03139.61 ▲35.4358.69 ▲14.53
Production genre /wp-admin/edit-tags.php?taxonomy=production_category&post_type=production1,3162.3028.2129.66
Add New /wp-admin/post-new.php?post_type=production2,6668.01195.7786.93
Venues /wp-admin/edit-tags.php?taxonomy=production_scenes&post_type=production1,3162.3027.7330.72
All Productions /wp-admin/edit.php?post_type=production1,1562.0231.5832.56
Actors /wp-admin/edit-tags.php?taxonomy=production_actors&post_type=production1,2852.3028.1531.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=production_actors&post_type=production
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.

SRP 50% 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
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ngo-production/template-files/wally-child-ngo/taxonomy-production_scenes.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ngo-production/template-files/twenty-fifteen-child-ngo/single-production.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ngo-production/template-files/twenty-fifteen-child-ngo/archive-production.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ngo-production/template-files/beyond-expectations-child-ngo/taxonomy-production_actors.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ngo-production/template-files/beyond-expectations-child-ngo/archive-production.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ngo-production/template-files/twenty-fifteen-child-ngo/taxonomy-production_scenes.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ngo-production/template-files/wally-child-ngo/single-production.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ngo-production/template-files/beyond-expectations-child-ngo/single-production.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ngo-production/template-files/beyond-expectations-child-ngo/taxonomy-production_scenes.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/ngo-production/template-files/twenty-fifteen-child-ngo/content-production.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=production
    • > Network (severe)
    wp-content/plugins/ngo-production/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% 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 to be fixed: You can take inspiration from this readme.txt

ngo-production/ngo-production.php 92% from 13 tests

The main PHP file in "NGO Production" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 176 characters long)

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
Good job! No executable or dangerous file extensions detected2,011 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP141411361,371
CSS13963384
PO File18183256

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin