84% seed-buddhist-year

Code Review | Seed Buddhist Year

WordPress plugin Seed Buddhist Year scored84%from 54 tests.

About plugin

  • Plugin page: seed-buddhist-year
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.1
  • WordPress version: 6.3.1
  • First release: May 6, 2016
  • Latest release: Nov 7, 2022
  • Number of updates: 27
  • Update frequency: every 88.0 days
  • Top authors: SeedThemes (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

3,000+ active /15,975 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Seed Buddhist Year
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.20 ▼7.82
Dashboard /wp-admin3.32 ▲0.0143.37 ▼4.02
Posts /wp-admin/edit.php3.37 ▲0.0146.05 ▲0.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.15 ▼17.68
Media Library /wp-admin/upload.php3.24 ▲0.0135.50 ▲3.32

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Seed Buddhist Year
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.041.79 ▼0.3441.86 ▼3.68
Dashboard /wp-admin2,203 ▲125.91 ▲0.01103.98 ▼2.6444.53 ▲3.11
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0440.90 ▲5.5134.73 ▼1.66
Add New Post /wp-admin/post-new.php1,537 ▼523.12 ▲5.13656.15 ▲66.7171.07 ▲12.66
Media Library /wp-admin/upload.php1,385 ▼64.20 ▲0.04103.13 ▲6.9242.83 ▲0.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/seed-buddhist-year/seed-buddhist-year.php:57

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: year, buddhist, time, date

seed-buddhist-year/seed-buddhist-year.php Passed 13 tests

The main PHP file in "Seed Buddhist Year" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
A plugin for setting the year to the buddhist year

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
There were no executable files found in this plugin137 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14536137

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Methods3
▷ Static methods266.67%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png6.29KB5.20KB▼ 17.30%