84% my-simply-calender

Code Review | My Simply Calender

WordPress plugin My Simply Calender scored84%from 54 tests.

About plugin

  • Plugin page: my-simply-calender
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Jan 13, 2013
  • Latest release: Apr 15, 2013
  • Number of updates: 3
  • Update frequency: every 30.7 days
  • Top authors: adityasubawa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /16,372 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by My Simply Calender
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.24 ▼0.20
Dashboard /wp-admin3.33 ▼0.0150.45 ▼11.27
Posts /wp-admin/edit.php3.39 ▲0.0348.13 ▼4.95
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.52 ▼20.01
Media Library /wp-admin/upload.php3.26 ▲0.0339.61 ▲0.38

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_wp_calmechanic
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for My Simply Calender
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲5414.34 ▲0.441.64 ▼0.0747.51 ▲3.86
Dashboard /wp-admin2,192 ▲215.62 ▼0.0292.92 ▲0.4239.23 ▼4.50
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0239.38 ▼0.1135.44 ▼2.40
Add New Post /wp-admin/post-new.php1,526 ▼023.19 ▼0.14667.84 ▼21.3463.10 ▲1.81
Media Library /wp-admin/upload.php1,400 ▲34.10 ▼0.12117.56 ▼0.3247.00 ▼0.83

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
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_wp_calmechanic
    • can_compress_scripts
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/my-simply-calender/wp-calmechanic.php:10

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 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:
  • Screenshots: Screenshot #1 (Display Example) image not found
You can take inspiration from this readme.txt

my-simply-calender/wp-calmechanic.php 92% from 13 tests

Analyzing the main PHP file in "My Simply Calender" version 1.2
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("my-simply-calender.php" instead of "wp-calmechanic.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin132 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP108132

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png4.53KB3.12KB▼ 31.12%