10% calendario-dekatrian

Code Review | Calendário Dekatrian

WordPress plugin Calendário Dekatrian scored10%from 54 tests.

About plugin

  • Plugin page: calendario-dekatrian
  • Plugin version: 0.1.2
  • PHP compatiblity: 5.1.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 9, 2018
  • Latest release: Jan 9, 2018
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: tchabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /588 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/calendario-dekatrian/include/DekatrianDate.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; DekatrianDate has a deprecated constructor

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

Server-side resources used by Calendário Dekatrian
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.26 ▼2.26
Dashboard /wp-admin3.33 ▲0.0348.00 ▼5.01
Posts /wp-admin/edit.php3.38 ▲0.0250.29 ▼4.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.79 ▼10.64
Media Library /wp-admin/upload.php3.25 ▲0.0239.56 ▲1.72
Calendário Dekatrian /wp-admin/options-general.php?page=dekatrian3.2634.78

Server storage [IO: ▲0.04MB] [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: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
dekatrian_settings
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Calendário Dekatrian
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲1014.71 ▲0.551.71 ▼0.0145.39 ▲5.82
Dashboard /wp-admin2,202 ▲285.65 ▲0.0886.77 ▼15.2642.60 ▼0.64
Posts /wp-admin/edit.php2,107 ▲42.01 ▼0.0035.28 ▼9.4534.59 ▼2.81
Add New Post /wp-admin/post-new.php1,532 ▼523.89 ▲5.74698.35 ▲78.8960.18 ▼9.69
Media Library /wp-admin/upload.php1,407 ▲74.32 ▲0.12110.50 ▲9.8348.01 ▲2.70
Calendário Dekatrian /wp-admin/options-general.php?page=dekatrian1,1961.7124.1329.33

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/calendario-dekatrian/include/Dekatrian.php:9

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: dekatrian, calendrio

calendario-dekatrian/dekatrian.php 92% from 13 tests

The main PHP script in "Calendário Dekatrian" version 0.1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("calendario-dekatrian.php" instead of "dekatrian.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
No dangerous file extensions were detected466 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP55915379
CSS111156
JavaScript122331

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity18.00
▷ Minimum class complexity8.00
▷ Maximum class complexity28.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods210.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants1285.71%
▷ Class constants214.29%
▷ Public constants2100.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