84% ntashka-addons

Code Review | Ntshka Addons

WordPress plugin Ntshka Addons scored 84% from 54 tests.

About plugin

  • Plugin page: ntashka-addons
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 5.8.1
  • First release: May 5, 2021
  • Latest release: May 5, 2021
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: fallentroj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 110 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
Install script ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼171.73ms] Passed 4 tests

Analyzing server-side resources used by Ntshka Addons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1332.90 ▲7.78
Dashboard /wp-admin2.74 ▼0.3126.47 ▼19.40
Posts /wp-admin/edit.php2.74 ▼0.3621.00 ▼22.29
Add New Post /wp-admin/post-new.php2.74 ▼2.6923.16 ▼631.30
Media Library /wp-admin/upload.php2.74 ▼0.2619.22 ▼13.94

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Ntshka Addons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,792 ▲19616.25 ▲0.519.67 ▼2.6252.94 ▲4.26
Dashboard /wp-admin3,056 ▲1256.08 ▲0.14145.95 ▼5.71110.65 ▲5.26
Posts /wp-admin/edit.php2,775 ▲362.72 ▲0.0069.21 ▼3.0491.55 ▲6.55
Add New Post /wp-admin/post-new.php1,696 ▼1,99118.83 ▲3.69418.62 ▼116.64110.74 ▲3.22
Media Library /wp-admin/upload.php1,843 ▲365.04 ▲0.00154.45 ▼18.04117.23 ▲1.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/ntashka-addons/widgets/ntshka-timeline.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/ntashka-addons/widgets/ntshka-card2.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/ntashka-addons/widgets/ntshka-faq.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/ntashka-addons/widgets/ntshka-card.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/ntashka-addons/widgets/ntshka-date.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/ntashka-addons/widgets/headline-ntshka.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/ntashka-addons/widgets/pricing-ntshka.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: widgets, date, elementor widgets, timeline, elementor

ntashka-addons/ntshka-addons.php 92% from 13 tests

"Ntshka Addons" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ntashka-addons.php" instead of "ntshka-addons.php")

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
No dangerous file extensions were detected6,368 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JSON2004,105
PHP91541441,224
CSS210339952
JavaScript2106387

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity2.88
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.23
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods66
▷ Static methods11.52%
▷ Public methods5989.39%
▷ Protected methods710.61%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin