78% ahmeti-wp-guzel-sozler

Code Review | Ahmeti Wp Güzel Sözler

WordPress plugin Ahmeti Wp Güzel Sözler scored78%from 54 tests.

About plugin

  • Plugin page: ahmeti-wp-guzel-s...
  • Plugin version: 4.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.8.2
  • WordPress version: 6.3.1
  • First release: May 19, 2013
  • Latest release: Dec 3, 2021
  • Number of updates: 27
  • Update frequency: every 115.8 days
  • Top authors: ahmeti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,272 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.06MB] [CPU: ▲0.53ms] Passed 4 tests

Analyzing server-side resources used by Ahmeti Wp Güzel Sözler
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.98 ▲4.98
Dashboard /wp-admin3.37 ▲0.0755.09 ▲7.78
Posts /wp-admin/edit.php3.42 ▲0.0648.67 ▼1.18
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.59 ▼7.04
Media Library /wp-admin/upload.php3.29 ▲0.0641.48 ▲5.35

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Ahmeti Wp Güzel Sözler
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.59 ▲1.351.63 ▼2.9742.59 ▲2.02
Dashboard /wp-admin2,208 ▲305.68 ▼0.0382.34 ▼18.5781.73 ▲39.10
Posts /wp-admin/edit.php2,116 ▲191.99 ▼0.0537.20 ▼0.3634.02 ▼1.90
Add New Post /wp-admin/post-new.php1,691 ▲16322.07 ▼0.81734.60 ▲63.5752.00 ▼4.55
Media Library /wp-admin/upload.php1,413 ▲194.28 ▲0.1198.45 ▼1.8978.06 ▲32.56

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 22× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/ahmeti-wp-guzel-sozler/import/import_save.php
    • > /wp-content/plugins/ahmeti-wp-guzel-sozler/soz/soz_list.php
    • > /wp-content/plugins/ahmeti-wp-guzel-sozler/soz/new_soz_form_add.php
    • > /wp-content/plugins/ahmeti-wp-guzel-sozler/soz/delete_soz.php
    • > /wp-content/plugins/ahmeti-wp-guzel-sozler/author/update_author_form.php
    • > /wp-content/plugins/ahmeti-wp-guzel-sozler/author/new_author_form_add.php
    • > /wp-content/plugins/ahmeti-wp-guzel-sozler/author/author_list.php
    • > /wp-content/plugins/ahmeti-wp-guzel-sozler/export/export_save.php
    • > /wp-content/plugins/ahmeti-wp-guzel-sozler/author/new_author_form.php
    • > /wp-content/plugins/ahmeti-wp-guzel-sozler/export/export_page.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/ahmeti-wp-guzel-sozler/index.php on line 34
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/ahmeti-wp-guzel-sozler/index.php on line 35
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/ahmeti-wp-guzel-sozler/index.php on line 33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/ahmeti-wp-guzel-sozler/index.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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: Screenshot #1 (Genel Sayfa Görüntüsü) image not found
You can take inspiration from this readme.txt

ahmeti-wp-guzel-sozler/index.php 92% from 13 tests

Analyzing the main PHP file in "Ahmeti Wp Güzel Sözler" version 4.0
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ahmeti-wp-guzel-sozler.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin921 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP2421748901
CSS141115
JavaScript114195

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 compressed PNG files occupy 0.30MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png49.10KB22.51KB▼ 54.16%
images/ahmeti-icon.png0.78KB0.83KB0.00%
screenshot-3.png26.10KB24.90KB▼ 4.62%
screenshot-4.png167.66KB164.44KB▼ 1.92%
images/icon.png1.93KB1.66KB▼ 13.69%