83% wp-iletimerkezi-sms

Code Review | WP Iletimerkezi SMS

WordPress plugin WP Iletimerkezi SMS scored83%from 54 tests.

About plugin

  • Plugin page: wp-iletimerkezi-sms
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.8
  • WordPress version: 6.3.1
  • First release: Apr 12, 2018
  • Latest release: Apr 12, 2018
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: nsozden (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /991 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.60ms] Passed 4 tests

Analyzing server-side resources used by WP Iletimerkezi SMS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.95 ▲0.56
Dashboard /wp-admin3.41 ▲0.1048.65 ▼9.11
Posts /wp-admin/edit.php3.52 ▲0.1647.76 ▼0.01
Add New Post /wp-admin/post-new.php5.99 ▲0.1088.45 ▼9.82
Media Library /wp-admin/upload.php3.33 ▲0.1036.98 ▲6.07
Iletimerkezi /wp-admin/options-general.php?page=iletimerkezi-options3.3030.41

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
ilt_logs
db_upgraded
widget_recent-posts
ilt_option

Browser metrics Passed 4 tests

A check of browser resources used by WP Iletimerkezi SMS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.12 ▼1.261.85 ▼0.2543.02 ▼6.60
Dashboard /wp-admin2,207 ▲194.86 ▼0.18104.01 ▼1.8839.34 ▼1.02
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.1435.59 ▼6.9631.70 ▼5.01
Add New Post /wp-admin/post-new.php1,523 ▲923.31 ▲5.61665.64 ▲12.6250.42 ▼4.66
Media Library /wp-admin/upload.php1,392 ▲14.21 ▼0.0394.58 ▼9.7644.19 ▲1.70
Iletimerkezi /wp-admin/options-general.php?page=iletimerkezi-options9262.0428.1031.21

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: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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 everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Emarka\\Sms\\Response\\ResponseIterator' not found in wp-content/plugins/wp-iletimerkezi-sms/iletimerkezi-php/Emarka/Sms/Response/BlacklistResponseIterator.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Emarka\\Sms\\StateInterface' not found in wp-content/plugins/wp-iletimerkezi-sms/iletimerkezi-php/Emarka/Sms/Response/ResponseStatus.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-iletimerkezi-sms/admin-pages.php:71
    • > PHP Fatal error
      Uncaught Error: Class 'Emarka\\Sms\\Response\\ResponseIterator' not found in wp-content/plugins/wp-iletimerkezi-sms/iletimerkezi-php/Emarka/Sms/Response/ReportResponseIterator.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-iletimerkezi-sms/core.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-iletimerkezi-sms/url-shorten.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
These attributes need your attention: The official readme.txt is a good inspiration

wp-iletimerkezi-sms/core.php 85% from 13 tests

The main file in "WP Iletimerkezi SMS" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 162 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-iletimerkezi-sms.php" instead of "core.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,494 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP152534531,333
PO File14545126
Markdown112035

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.92
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes110.00%
Methods142
▷ Static methods53.52%
▷ Public methods11178.17%
▷ Protected methods1711.97%
▷ Private methods149.86%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
Constants35
▷ Global constants720.00%
▷ Class constants2880.00%
▷ Public constants28100.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
PNG images were not found in this plugin