10% wp-russian-horoscope

Code Review | WP Russian Horoscope

WordPress plugin WP Russian Horoscope scored10%from 54 tests.

About plugin

  • Plugin page: wp-russian-horoscope
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 3, 2015
  • Latest release: May 8, 2016
  • Number of updates: 27
  • Update frequency: every 13.9 days
  • Top authors: glaswr (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /2,701 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wp-russian-horoscope/index.php+153
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.47ms] Passed 4 tests

A check of server-side resources used by WP Russian Horoscope
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.58 ▼1.04
Dashboard /wp-admin3.34 ▲0.0444.46 ▼0.24
Posts /wp-admin/edit.php3.39 ▲0.0445.94 ▼1.87
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.67 ▲1.25
Media Library /wp-admin/upload.php3.27 ▲0.0434.14 ▲2.65
Гороскоп /wp-admin/options-general.php?page=ruhoroscope3.2329.19

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
wp-ruhoroscope-dateUpdate
widget_theysaidso_widget
wp-ruhoroscope-data
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

WP Russian Horoscope: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.14 ▼0.221.65 ▼0.4538.38 ▼9.02
Dashboard /wp-admin2,196 ▲195.58 ▼0.0394.59 ▼0.8940.09 ▲1.81
Posts /wp-admin/edit.php2,101 ▲11.95 ▼0.0138.89 ▲2.0534.77 ▼2.14
Add New Post /wp-admin/post-new.php1,529 ▲323.51 ▲0.16649.00 ▼40.4544.75 ▼18.36
Media Library /wp-admin/upload.php1,404 ▲44.15 ▼0.0395.51 ▼6.7043.55 ▼2.49
Гороскоп /wp-admin/options-general.php?page=ruhoroscope1,0662.3224.4038.17

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
  • The uninstall procedure has failed, leaving 8 options in the database
    • wp-ruhoroscope-dateUpdate
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • wp-ruhoroscope-data
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-russian-horoscope/index.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Админ-панель), #2 (Вид на сайте), #3 (Пример вставки)
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

wp-russian-horoscope/index.php 92% from 13 tests

The entry point to "WP Russian Horoscope" version 1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-russian-horoscope.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin197 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14068197

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
3 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png13.21KB6.55KB▼ 50.41%
screenshot-2.png39.11KB18.97KB▼ 51.51%
screenshot-1.png60.97KB28.85KB▼ 52.68%