10% ninja-araclar

Code Review | Ninja Araçlar

WordPress plugin Ninja Araçlar scored10%from 54 tests.

About plugin

  • Plugin page: ninja-araclar
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 15, 2018
  • Latest release: Feb 15, 2018
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: temaninja (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /7,875 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/ninja-araclar/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php+1378
    preg_match(): Compilation failed: invalid range in character class at offset 4

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.59ms] Passed 4 tests

A check of server-side resources used by Ninja Araçlar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.21 ▼3.86
Dashboard /wp-admin3.34 ▲0.0453.09 ▲5.24
Posts /wp-admin/edit.php3.46 ▲0.1050.94 ▲2.22
Add New Post /wp-admin/post-new.php5.94 ▲0.0687.14 ▼13.97
Media Library /wp-admin/upload.php3.27 ▲0.0439.58 ▲7.09

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 171 new files
Database: 3 new tables, 9 new options
New tables
wp_superlig_puan
wp_burclar
wp_doviz_kurlari
New WordPress options
widget_burclar_widget
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_dÖviz_widget
theysaidso_admin_options
db_upgraded
widget_super_lig_puan_widget

Browser metrics Passed 4 tests

A check of browser resources used by Ninja Araçlar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲18413.70 ▼0.677.69 ▲5.9842.59 ▲2.52
Dashboard /wp-admin2,210 ▲365.79 ▲0.6996.20 ▼20.1940.34 ▼3.72
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0434.92 ▼4.1239.86 ▲4.95
Add New Post /wp-admin/post-new.php1,518 ▼523.23 ▼0.00693.54 ▲9.4155.61 ▼3.33
Media Library /wp-admin/upload.php1,386 ▲14.17 ▼0.08104.61 ▼1.4245.11 ▲2.19

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
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_burclar_widget
    • widget_theysaidso_widget
    • widget_dÖviz_widget
    • db_upgraded
    • can_compress_scripts
    • widget_super_lig_puan_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ninja-araclar/admin/partials/ninja-araclar-admin-display.php
    • > /wp-content/plugins/ninja-araclar/public/partials/ninja-araclar-public-display.php
  • 45× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/ninja-araclar/vendor/guzzlehttp/psr7/src/Uri.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ninja-araclar/public/views/burclar.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ninja-araclar/public/views/puandurumu.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/ninja-araclar/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/ninja-araclar/vendor/guzzlehttp/psr7/src/DroppingStream.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/ninja-araclar/vendor/guzzlehttp/promises/src/Coroutine.php:43
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/ninja-araclar/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/ninja-araclar/vendor/guzzlehttp/promises/src/AggregateException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/ninja-araclar/vendor/psr/http-message/src/RequestInterface.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/ninja-araclar/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Donate link: Invalid URI found ("www.tema.ninja")
Please take inspiration from this readme.txt

ninja-araclar/ninja-araclar.php Passed 13 tests

"Ninja Araçlar" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
Sitenize Süperlig Puan Durumu, Burçlar ve Döviz Kurlarını eklemennizi sağlar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin16,412 lines of code in 135 files:
LanguageFilesBlank linesComment linesLines of code
PHP1112,2015,59010,024
Markdown1092903,135
SVG1002,671
JSON700466
CSS391298
JavaScript25549
make1409

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity15.29
▷ Minimum class complexity1.00
▷ Maximum class complexity197.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces10
Interfaces14
Traits2
Classes79
▷ Abstract classes00.00%
▷ Concrete classes79100.00%
▷ Final classes78.86%
Methods801
▷ Static methods708.74%
▷ Public methods67083.65%
▷ Protected methods202.50%
▷ Private methods11113.86%
Functions147
▷ Named functions6040.82%
▷ Anonymous functions8759.18%
Constants69
▷ Global constants2130.43%
▷ Class constants4869.57%
▷ Public constants48100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/yengec.png10.51KB4.73KB▼ 54.96%
public/images/kur/rub.png0.51KB0.44KB▼ 13.24%
public/images/kur/sar.png0.61KB0.54KB▼ 11.61%
public/images/basak.png12.60KB5.75KB▼ 54.41%
public/images/aslan.png12.85KB5.94KB▼ 53.74%