84% alexa-siralamasi

Code Review | Alexa Siralamasi

WordPress plugin Alexa Siralamasi scored84%from 54 tests.

About plugin

  • Plugin page: alexa-siralamasi
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 1, 2016
  • Latest release: Oct 2, 2016
  • Number of updates: 22
  • Update frequency: every 0.2 days
  • Top authors: osmansefacengiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /900 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Alexa Siralamasi
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.07 ▼4.55
Dashboard /wp-admin3.31 ▲0.0144.14 ▼3.80
Posts /wp-admin/edit.php3.36 ▲0.0143.70 ▼5.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.20 ▼22.51
Media Library /wp-admin/upload.php3.24 ▲0.0132.28 ▼1.71

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_alexa_traffic_rank_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Alexa Siralamasi
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6814.48 ▲0.201.76 ▼0.3040.41 ▼0.96
Dashboard /wp-admin2,203 ▲155.79 ▼0.1095.84 ▼4.7738.83 ▼3.70
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0537.56 ▼5.0532.76 ▼4.29
Add New Post /wp-admin/post-new.php1,514 ▼017.65 ▲0.07599.30 ▼0.0149.41 ▼7.64
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0398.16 ▼5.8740.98 ▼3.40

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
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_alexa_traffic_rank_widget
    • can_compress_scripts
    • 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 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/alexa-siralamasi/alexa-traffic-rank-widget.php:12

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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:
  • Screenshots: These screenshots do not have images: #1 (Screenshot_19.png), #2 (Screenshot_20.png), #3 (Screenshot_21.png), #4 (Screenshot_22.png), #5 (Screenshot_23.png), #6 (Screenshot_24.png), #7 (Screenshot_25.png), #8 (Screenshot_26.png)
Please take inspiration from this readme.txt

alexa-siralamasi/alexa-traffic-rank-widget.php 92% from 13 tests

The primary PHP file in "Alexa Siralamasi" version 1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("alexa-siralamasi.php" instead of "alexa-traffic-rank-widget.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 plugin109 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14410109

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
8 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Screenshot_25.png17.07KB8.12KB▼ 52.47%
Screenshot_24.png17.38KB8.35KB▼ 51.98%
Screenshot_23.png17.63KB8.23KB▼ 53.29%
Screenshot_21.png17.64KB8.13KB▼ 53.92%
Screenshot_20.png17.65KB8.13KB▼ 53.95%