84% santo-do-dia

Code Review | WP Santo do Dia

WordPress plugin WP Santo do Dia scored84%from 54 tests.

About plugin

  • Plugin page: santo-do-dia
  • Plugin version: 2.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 16, 2017
  • Latest release: Aug 15, 2023
  • Number of updates: 20
  • Update frequency: every 104.9 days
  • Top authors: fellipesoares (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /940 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by WP Santo do Dia
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.61 ▼6.93
Dashboard /wp-admin3.31 ▲0.0140.95 ▼10.20
Posts /wp-admin/edit.php3.36 ▲0.0146.19 ▼4.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0176.25 ▼27.63
Media Library /wp-admin/upload.php3.23 ▲0.0034.45 ▼0.91

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: 1 new table, 6 new options
New tables
wp_santo_do_dia
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Santo do Dia: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.17 ▼1.141.90 ▲0.1838.66 ▼4.54
Dashboard /wp-admin2,206 ▲184.87 ▼0.97111.96 ▼6.4943.62 ▼2.42
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0540.54 ▲1.5935.03 ▼1.24
Add New Post /wp-admin/post-new.php1,544 ▲218.28 ▲0.02637.13 ▲2.7252.09 ▼4.73
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.0495.98 ▼6.2740.50 ▼6.86

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/santo-do-dia/santododia.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: saint, catholic

santo-do-dia/santododia.php 92% from 13 tests

"WP Santo do Dia" version 2.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("santo-do-dia.php" instead of "santododia.php")

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 detected110 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1344389
CSS15221

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin