84% horozont

Code Review | Horozont

WordPress plugin Horozont scored84%from 54 tests.

About plugin

  • Plugin page: horozont
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.2
  • WordPress version: 6.3.1
  • First release: Sep 26, 2019
  • Latest release: Sep 26, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: trigur (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /879 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.21ms] Passed 4 tests

Server-side resources used by Horozont
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.27 ▼13.92
Dashboard /wp-admin3.35 ▲0.0544.26 ▼2.20
Posts /wp-admin/edit.php3.40 ▲0.0545.80 ▼1.01
Add New Post /wp-admin/post-new.php5.93 ▲0.0585.20 ▼11.70
Media Library /wp-admin/upload.php3.27 ▲0.0534.05 ▼0.82
Гороскоп /wp-admin/options-general.php?page=horozont3.2429.10

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Horozont
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.48 ▲0.172.04 ▲0.0444.82 ▲2.20
Dashboard /wp-admin2,210 ▲194.85 ▼1.05107.60 ▲2.3338.49 ▼6.08
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0135.65 ▲0.5632.73 ▲0.87
Add New Post /wp-admin/post-new.php1,536 ▲1622.97 ▼0.13651.66 ▼21.6160.66 ▲7.31
Media Library /wp-admin/upload.php1,392 ▲74.25 ▲0.0596.30 ▲0.1343.05 ▼2.63
Гороскоп /wp-admin/options-general.php?page=horozont9852.0522.3237.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/horozont/horozont.php:74

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Админ-панель), #3 (Пример вставки)
You can look at the official readme.txt

horozont/horozont.php Passed 13 tests

"Horozont" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
111 characters long description:
Плагин для отображения ежедневного гороскопа по категориям.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected334 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35677320
SVG111014

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.21
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods428.57%
▷ Protected methods1071.43%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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 images were found in this plugin