72% ngo-concert

Code Review | NGO Concert

WordPress plugin NGO Concert scored 72% from 54 tests.

About plugin

  • Plugin page: ngo-concert
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Aug 30, 2016
  • Latest release: Sep 15, 2016
  • Number of updates: 11
  • Update frequency: every 10.0 days
  • Top authors: joje47 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 725 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.53ms] Passed 4 tests

A check of server-side resources used by NGO Concert
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2040.29 ▲0.65
Dashboard /wp-admin3.38 ▲0.0830.43 ▼18.60
Posts /wp-admin/edit.php3.44 ▲0.0837.78 ▼6.26
Add New Post /wp-admin/post-new.php5.63 ▼0.2578.19 ▼11.52
Media Library /wp-admin/upload.php3.38 ▲0.1530.12 ▼1.74
Platser /wp-admin/edit-tags.php?taxonomy=concert_scenes&post_type=concert3.3731.17
Musiker /wp-admin/edit-tags.php?taxonomy=concert_musicians&post_type=concert3.3729.50
Konsertgenre /wp-admin/edit-tags.php?taxonomy=concert_category&post_type=concert3.3732.82
Lägg till ny /wp-admin/post-new.php?post_type=concert3.4547.93
Alla konserter /wp-admin/edit.php?post_type=concert3.4236.28

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for NGO Concert
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲11113.58 ▼1.071.81 ▼0.0243.49 ▲5.44
Dashboard /wp-admin2,249 ▲635.81 ▲0.8795.46 ▼19.9539.66 ▼0.70
Posts /wp-admin/edit.php2,131 ▲422.02 ▼0.0133.93 ▼5.8732.77 ▼0.07
Add New Post /wp-admin/post-new.php1,574 ▲4523.28 ▲5.00644.91 ▲47.4959.89 ▲0.77
Media Library /wp-admin/upload.php1,425 ▲374.16 ▼0.1195.44 ▼11.7242.66 ▼4.52
Platser /wp-admin/edit-tags.php?taxonomy=concert_scenes&post_type=concert1,3022.3028.2028.01
Musiker /wp-admin/edit-tags.php?taxonomy=concert_musicians&post_type=concert1,2742.3028.4629.05
Konsertgenre /wp-admin/edit-tags.php?taxonomy=concert_category&post_type=concert1,3022.3027.5828.38
Lägg till ny /wp-admin/post-new.php?post_type=concert2,6708.07171.6875.58
Alla konserter /wp-admin/edit.php?post_type=concert1,1441.9631.5233.50

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=concert
    • > 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ngo-concert/template-files/archive-concert.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ngo-concert/template-files/taxonomy-concert_scenes.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ngo-concert/template-files/taxonomy-concert_musicians.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ngo-concert/template-files/single-concert.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=concert
    • > Network (severe)
    wp-content/plugins/ngo-concert/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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #0 in ngo-concert/assets to your readme.txt
The official readme.txt might help

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

"NGO Concert" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 185 characters long)

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
Everything looks great! No dangerous files found in this plugin1,505 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP55765623
PO File2154156498
CSS13963384

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
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
There are no PNG files in this plugin