84% astrobene

Code Review | AstroBene

WordPress plugin AstroBene scored84%from 54 tests.

About plugin

  • Plugin page: astrobene
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9
  • WordPress version: 6.3.1
  • First release: Dec 16, 2015
  • Latest release: Jan 27, 2022
  • Number of updates: 7
  • Update frequency: every 319.1 days
  • Top authors: C-In-OFF (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,274 total downloads


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
Installer ran successfully

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

An overview of server-side resources used by AstroBene
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.48 ▲3.46
Dashboard /wp-admin3.31 ▲0.0148.10 ▼4.94
Posts /wp-admin/edit.php3.36 ▲0.0151.49 ▼5.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.59 ▼13.82
Media Library /wp-admin/upload.php3.24 ▲0.0137.83 ▼0.73

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

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

Browser metrics Passed 4 tests

A check of browser resources used by AstroBene
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.28 ▼1.071.72 ▲0.0142.46 ▼0.71
Dashboard /wp-admin2,206 ▲155.85 ▼0.05106.30 ▲1.0639.13 ▼2.65
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0243.15 ▲1.3733.93 ▼1.56
Add New Post /wp-admin/post-new.php1,533 ▼023.32 ▲0.16685.42 ▲12.6056.14 ▲1.76
Media Library /wp-admin/upload.php1,385 ▲64.20 ▲0.0395.22 ▼3.0444.47 ▼2.13

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
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_astrobene_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • 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
Good news, no errors were detected

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/astrobene/astrobene.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === astrobene === )
  • Tags: You are using too many tags: 20 tag instead of maximum 10
You can look at the official readme.txt

astrobene/astrobene.php Passed 13 tests

"AstroBene" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
116 characters long description:
Astrological weather for every day (Russian). Астрологическая погода на каждый день

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected51 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin