84% meu-astro-horoscopo

Code Review | Meu Astro

WordPress plugin Meu Astro scored84%from 54 tests.

About plugin

  • Plugin page: meu-astro-horoscopo
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-6.1
  • WordPress version: 6.3.1
  • First release: May 15, 2020
  • Latest release: Mar 17, 2023
  • Number of updates: 7
  • Update frequency: every 148.0 days
  • Top authors: raphaelheide (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /745 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.01MB] [CPU: ▲0.29ms] Passed 4 tests

Analyzing server-side resources used by Meu Astro
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.00 ▲7.89
Dashboard /wp-admin3.31 ▲0.0150.74 ▲2.86
Posts /wp-admin/edit.php3.37 ▲0.0150.68 ▲4.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.49 ▼8.03
Media Library /wp-admin/upload.php3.24 ▲0.0135.80 ▲2.28

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_meuastrowidget
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Meu Astro: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.131.75 ▼0.0645.27 ▲2.67
Dashboard /wp-admin2,209 ▲244.83 ▼1.02107.27 ▼6.6937.17 ▼9.02
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0137.69 ▼0.5230.44 ▼2.45
Add New Post /wp-admin/post-new.php1,534 ▼023.23 ▲0.08673.98 ▲9.6051.21 ▼0.29
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0197.55 ▼9.1342.72 ▼1.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_meuastrowidget
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/meu-astro-horoscopo/meuastro.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

meu-astro-horoscopo/meuastro.php 92% from 13 tests

This is the main PHP file of "Meu Astro" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("meu-astro-horoscopo.php" instead of "meuastro.php")

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
Everything looks great! No dangerous files found in this plugin54 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151954

PHP code Passed 2 tests

Analyzing 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.10
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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 functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin