84% wpit-easter

Code Review | Wpit Easter

WordPress plugin Wpit Easter scored84%from 54 tests.

About plugin

  • Plugin page: wpit-easter
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Mar 11, 2016
  • Latest release: Jul 10, 2021
  • Number of updates: 15
  • Update frequency: every 129.8 days
  • Top authors: wolly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /803 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.82ms] Passed 4 tests

An overview of server-side resources used by Wpit Easter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.85 ▼3.48
Dashboard /wp-admin3.33 ▲0.0353.68 ▼6.36
Posts /wp-admin/edit.php3.38 ▲0.0251.49 ▲3.30
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.42 ▼20.52
Media Library /wp-admin/upload.php3.26 ▲0.0234.51 ▼0.90

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wpit Easter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.242.12 ▲0.4743.82 ▼0.55
Dashboard /wp-admin2,195 ▲185.56 ▲0.0384.51 ▼9.6739.48 ▼5.42
Posts /wp-admin/edit.php2,100 ▼32.04 ▲0.0635.28 ▲0.0133.51 ▼2.03
Add New Post /wp-admin/post-new.php1,528 ▲222.82 ▼0.18660.36 ▲50.1553.07 ▲6.14
Media Library /wp-admin/upload.php1,400 ▼34.31 ▲0.02100.58 ▲1.6242.48 ▼3.41

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
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 plugin_dir_path() in wp-content/plugins/wpit-easter/wpit-easter.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 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
5 plugin tags: orthodox, gregorian, easter, julian, catholic

wpit-easter/wpit-easter.php Passed 13 tests

The primary PHP file in "Wpit Easter" version 1.0 is used by WordPress to initiate all plugin functionality
106 characters long description:
Find Catholic Easter date in gregorian calendar and Orthodox Easter date in Julian and Gregorian calendar.

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
Success! There were no dangerous files found in this plugin109 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP29291109

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods457.14%
▷ Protected methods00.00%
▷ Private methods342.86%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin