83% ndesign-theme-support

Code Review | NDesign Theme Support

WordPress plugin NDesign Theme Support scored 83% from 54 tests.

About plugin

  • Plugin page: ndesign-theme-sup...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-5.2
  • WordPress version: 6.3.1
  • First release: Jul 30, 2019
  • Latest release: Jul 30, 2019
  • Number of updates: 6
  • Update frequency: every 5.2 days
  • Top authors: 1specindia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,815 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.03ms] Passed 4 tests

An overview of server-side resources used by NDesign Theme Support
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.41 ▼5.72
Dashboard /wp-admin3.33 ▲0.0246.13 ▼1.56
Posts /wp-admin/edit.php3.38 ▲0.0247.17 ▼3.58
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.50 ▼1.25
Media Library /wp-admin/upload.php3.25 ▲0.0234.88 ▲3.41
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=portfolio3.2437.18
Add New /wp-admin/post-new.php?post_type=portfolio3.3447.43
Portfolio /wp-admin/edit.php?post_type=portfolio3.3038.57

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
category_children
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for NDesign Theme Support
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7713.25 ▼1.141.72 ▼0.2841.46 ▼3.28
Dashboard /wp-admin2,234 ▲495.82 ▲0.88104.01 ▲1.3439.73 ▲0.91
Posts /wp-admin/edit.php2,123 ▲372.00 ▲0.0040.70 ▲5.4435.89 ▼1.93
Add New Post /wp-admin/post-new.php1,573 ▲5918.33 ▲0.70643.57 ▲16.1565.61 ▲13.70
Media Library /wp-admin/upload.php1,419 ▲284.20 ▲0.0193.49 ▼3.3340.62 ▼1.00
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=portfolio1,4712.1426.8432.19
Add New /wp-admin/post-new.php?post_type=portfolio1,8503.6274.4337.60
Portfolio /wp-admin/edit.php?post_type=portfolio1,1191.9433.3229.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • category_children
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ndesign-theme-support/ndesign-extension.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
  • Screenshots: Please a description for screenshot #2 in ndesign-theme-support/assets to your readme.txt
  • Screenshots: Screenshot #3 (Portfolio Preview) image required
Please take inspiration from this readme.txt

ndesign-theme-support/ndesign-extension.php 92% from 13 tests

The principal PHP file in "NDesign Theme Support" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ndesign-theme-support.php" instead of "ndesign-extension.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111419

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin