68% monthly-data-sheets

Code Review | Monthly Data Sheets

WordPress plugin Monthly Data Sheets scored 68% from 54 tests.

About plugin

  • Plugin page: monthly-data-sheets
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.3-4.5.2
  • WordPress version: 6.3.1
  • First release: May 25, 2016
  • Latest release: Jun 9, 2016
  • Number of updates: 10
  • Update frequency: every 1.6 days
  • Top authors: reenushomy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 882 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼3.78ms] Passed 4 tests

Analyzing server-side resources used by Monthly Data Sheets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2536.68 ▼1.14
Dashboard /wp-admin3.57 ▲0.2647.64 ▼1.93
Posts /wp-admin/edit.php3.68 ▲0.3252.41 ▲2.43
Add New Post /wp-admin/post-new.php6.17 ▲0.2987.82 ▼13.87
Media Library /wp-admin/upload.php3.49 ▲0.2638.53 ▲1.84
All Data Sheets /wp-admin/edit.php?post_type=datasheet3.5341.26
Categories /wp-admin/edit-tags.php?taxonomy=datasheet_category&post_type=datasheet3.4835.29
Data Sheets /wp-admin/options-general.php?page=monthly_data_sheets_settings3.4433.02
Add New /wp-admin/post-new.php?post_type=datasheet3.5949.00

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 2 new tables, 8 new options
New tables
wp_mds_sheet_data
wp_mds_sheet
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
mds_db_version
can_compress_scripts
monthly_data_sheets_settings
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Monthly Data Sheets
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲19613.74 ▼0.635.79 ▲3.9341.70 ▼5.66
Dashboard /wp-admin2,242 ▲604.88 ▼1.02111.20 ▲5.1336.48 ▼10.09
Posts /wp-admin/edit.php2,131 ▲422.05 ▲0.0534.85 ▼1.6133.18 ▲1.28
Add New Post /wp-admin/post-new.php1,550 ▲1623.08 ▲0.03615.84 ▲19.5356.73 ▼3.76
Media Library /wp-admin/upload.php1,430 ▲454.45 ▲0.1897.65 ▼8.8240.76 ▼9.39
All Data Sheets /wp-admin/edit.php?post_type=datasheet1,1152.1334.3833.78
Categories /wp-admin/edit-tags.php?taxonomy=datasheet_category&post_type=datasheet1,3072.2726.5525.58
Data Sheets /wp-admin/options-general.php?page=monthly_data_sheets_settings9742.2123.4730.64
Add New /wp-admin/post-new.php?post_type=datasheet2,4577.72173.7868.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_mds_sheet
    • wp_mds_sheet_data
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • mds_db_version
    • widget_recent-posts
    • widget_recent-comments
    • monthly_data_sheets_settings

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=datasheet
    • > User deprecated in wp-includes/functions.php+5737
    Function WP_User->id was called with an argument that is deprecated since version 2.1.0! Use WP_User->ID instead.

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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/monthly-data-sheets/monthly-data-sheets.php
    • > /wp-content/plugins/monthly-data-sheets/lib/settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
6 plugin tags: appointments, book, sheet, logbook, diary...

monthly-data-sheets/monthly-data-sheets.php 92% from 13 tests

The main PHP script in "Monthly Data Sheets" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,116 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP6229433945
JavaScript2324589
CSS222882

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity27.80
▷ Minimum class complexity10.00
▷ Maximum class complexity56.00
Average method complexity4.05
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods44
▷ Static methods2352.27%
▷ Public methods4397.73%
▷ Protected methods00.00%
▷ Private methods12.27%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ 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