78% piyasalar

Code Review | Piyasalar

WordPress plugin Piyasalar scored 78% from 54 tests.

About plugin

  • Plugin page: piyasalar
  • Plugin version: 0.1.2-beta
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.4.2
  • WordPress version: 5.8.1
  • First release: Oct 23, 2014
  • Latest release: Feb 24, 2016
  • Number of updates: 17
  • Update frequency: every 28.9 days
  • Top authors: erdemsaid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,394 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Piyasalar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0233.46 ▼1.84
Dashboard /wp-admin3.07 ▲0.0148.90 ▲0.04
Posts /wp-admin/edit.php3.12 ▲0.0144.22 ▼1.42
Add New Post /wp-admin/post-new.php5.43 ▼0.0188.71 ▼683.81
Media Library /wp-admin/upload.php3.01 ▲0.0135.43 ▲9.63

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
widget_piyasalar_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Piyasalar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲8716.16 ▲0.579.50 ▲0.5541.62 ▼6.72
Dashboard /wp-admin2,963 ▲295.92 ▼0.10155.87 ▼2.28114.34 ▲4.62
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0162.25 ▼5.3097.89 ▲8.86
Add New Post /wp-admin/post-new.php1,581 ▼3420.37 ▼1.01401.53 ▲86.62109.87 ▲1.26
Media Library /wp-admin/upload.php1,810 ▲35.02 ▲0.01149.90 ▼2.10113.83 ▲5.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_piyasalar_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/piyasalar/include/widget_piyasalar.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/piyasalar/piyasalar.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Bileşen / Widget)
You can take inspiration from this readme.txt

piyasalar/piyasalar.php 85% from 13 tests

"Piyasalar" version 0.1.2-beta'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:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "0.1.2-beta")
  • Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin111 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25612468
CSS111443

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin