84% addurilka

Code Review | Addurilka

WordPress plugin Addurilka scored 84% from 54 tests.

About plugin

  • Plugin page: addurilka
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.5
  • WordPress version: 5.8.1
  • First release: Sep 21, 2015
  • Latest release: Apr 23, 2016
  • Number of updates: 63
  • Update frequency: every 3.4 days
  • Top authors: jon4god (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active / 3,361 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.11MB] [CPU: ▼138.12ms] Passed 4 tests

Server-side resources used by Addurilka
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.1139.73 ▲6.12
Dashboard /wp-admin3.17 ▲0.1245.72 ▼0.12
Posts /wp-admin/edit.php3.26 ▲0.1446.68 ▼2.07
Add New Post /wp-admin/post-new.php5.53 ▲0.1091.48 ▼555.51
Media Library /wp-admin/upload.php3.11 ▲0.1135.56 ▲5.21
Addurilka /wp-admin/options-general.php?page=wp_ya_addurl-plugin3.0833.28

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 3 new options
New WordPress options
wp_ya_addurl_setting_show_yandex
wp_ya_addurl_setting_show_google
wp_ya_addurl_setting_webmaster_tool

Browser metrics Passed 4 tests

An overview of browser requirements for Addurilka
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,881 ▲24415.90 ▲0.3910.28 ▲0.4745.48 ▼7.07
Dashboard /wp-admin3,062 ▲1315.97 ▲0.04140.93 ▼7.78103.34 ▼4.51
Posts /wp-admin/edit.php2,831 ▲922.71 ▲0.0168.95 ▼0.0777.26 ▼10.69
Add New Post /wp-admin/post-new.php1,568 ▲6818.92 ▲0.36366.36 ▼9.74102.78 ▼7.06
Media Library /wp-admin/upload.php1,899 ▲895.05 ▲0.04152.40 ▲4.43116.93 ▼0.50
Addurilka /wp-admin/options-general.php?page=wp_ya_addurl-plugin1,4012.0956.01102.06

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 3 options in the database
    • wp_ya_addurl_setting_show_yandex
    • wp_ya_addurl_setting_webmaster_tool
    • wp_ya_addurl_setting_show_google

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addurilka/wp-ya-addurl.php:14

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: addurl, seo, google, yandex

addurilka/wp-ya-addurl.php 92% from 13 tests

The entry point to "Addurilka" version 0.8 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("addurilka.php" instead of "wp-ya-addurl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin638 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13511429
PO File186106209

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected