84% notices-duyurular

Code Review | Announcements-Duyurular

WordPress plugin Announcements-Duyurular scored84%from 54 tests.

About plugin

  • Plugin page: notices-duyurular
  • Plugin version: 1.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.1
  • WordPress version: 6.3.1
  • First release: Oct 3, 2013
  • Latest release: Jun 10, 2020
  • Number of updates: 46
  • Update frequency: every 53.1 days
  • Top authors: sametatabasch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /6,155 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼3.72ms] Passed 4 tests

Server-side resources used by Announcements-Duyurular
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1442.33 ▼2.72
Dashboard /wp-admin3.46 ▲0.1550.32 ▼7.15
Posts /wp-admin/edit.php3.57 ▲0.2150.04 ▼0.12
Add New Post /wp-admin/post-new.php6.04 ▲0.1597.65 ▼4.88
Media Library /wp-admin/upload.php3.38 ▲0.1539.82 ▲6.60
New Notice /wp-admin/post-new.php?post_type=notice3.5353.45
All Notice /wp-admin/edit.php?post_type=notice3.4238.02

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Announcements-Duyurular
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.35 ▼0.001.80 ▲0.1543.28 ▲1.06
Dashboard /wp-admin2,235 ▲555.69 ▼0.1692.66 ▲5.0640.42 ▲1.73
Posts /wp-admin/edit.php2,143 ▲432.09 ▲0.0944.20 ▲4.0742.00 ▲4.77
Add New Post /wp-admin/post-new.php1,560 ▲3223.13 ▲0.13629.47 ▼24.3460.49 ▲2.74
Media Library /wp-admin/upload.php1,443 ▲434.37 ▲0.16103.40 ▲2.3144.78 ▼2.34
New Notice /wp-admin/post-new.php?post_type=notice2,4447.78172.8668.79
All Notice /wp-admin/edit.php?post_type=notice1,1041.9933.7630.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'GB_Notices' not found in wp-content/plugins/notices-duyurular/includes/class/GB_Notice.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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: Please take inspiration from this readme.txt

notices-duyurular/notices-duyurular.php 92% from 13 tests

The main PHP script in "Announcements-Duyurular" version 1.8.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,113 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
CSS9189122900
PHP5108377660
JavaScript463198351
PO File14651108
Markdown243070
SVG10024

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity16.67
▷ Minimum class complexity4.00
▷ Maximum class complexity25.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods2461.54%
▷ Protected methods00.00%
▷ Private methods1538.46%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
12 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/datePickerImages/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
css/datePickerImages/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
css/datePickerImages/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
css/datePickerImages/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
css/datePickerImages/ui-bg_glass_75_dadada_1x400.png0.26KB0.16KB▼ 38.93%