83% birth-chart-compatibility

Code Review | Birth Chart Compatibility

WordPress plugin Birth Chart Compatibility scored83%from 54 tests.

About plugin

  • Plugin page: birth-chart-compa...
  • Plugin version: 2.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0.0
  • WordPress version: 6.3.1
  • First release: Nov 22, 2018
  • Latest release: Jun 29, 2022
  • Number of updates: 24
  • Update frequency: every 54.8 days
  • Top authors: mia4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,355 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.59ms] Passed 4 tests

Server-side resources used by Birth Chart Compatibility
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.21 ▲0.42
Dashboard /wp-admin3.32 ▼0.0354.74 ▼7.48
Posts /wp-admin/edit.php3.37 ▲0.0148.23 ▼7.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.18 ▼22.23
Media Library /wp-admin/upload.php3.24 ▲0.0132.51 ▼5.53

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_birthchartcompatibility_widget

Browser metrics Passed 4 tests

Birth Chart Compatibility: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.181.93 ▲0.2244.44 ▲3.61
Dashboard /wp-admin2,195 ▲185.57 ▼0.0886.29 ▼0.1440.79 ▼1.73
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0736.36 ▼2.6537.48 ▼1.17
Add New Post /wp-admin/post-new.php1,526 ▼223.17 ▼0.27633.85 ▼38.8948.22 ▼17.62
Media Library /wp-admin/upload.php1,403 ▲64.18 ▲0.0296.78 ▼4.9247.19 ▲2.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_birthchartcompatibility_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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 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/birth-chart-compatibility/index.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

birth-chart-compatibility/index.php 85% from 13 tests

The entry point to "Birth Chart Compatibility" version 2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("birth-chart-compatibility.php" instead of "index.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 310 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,405 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript153651,290
PHP1412689
CSS16026

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.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%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin