84% maha-copyright-date

Code Review | Maha Copyright Date

WordPress plugin Maha Copyright Date scored84%from 54 tests.

About plugin

  • Plugin page: maha-copyright-date
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.1
  • WordPress version: 6.3.1
  • First release: Dec 18, 2018
  • Latest release: Dec 18, 2018
  • Number of updates: 2
  • Update frequency: every 101.0 days
  • Top authors: qamarramzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /603 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.20ms] Passed 4 tests

A check of server-side resources used by Maha Copyright Date
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.40 ▼4.53
Dashboard /wp-admin3.31 ▲0.0148.20 ▼2.10
Posts /wp-admin/edit.php3.36 ▲0.0047.11 ▼1.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.94 ▼0.91
Media Library /wp-admin/upload.php3.24 ▲0.0038.43 ▲0.85

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Maha Copyright Date
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.47 ▲1.201.74 ▼4.1244.09 ▲0.48
Dashboard /wp-admin2,203 ▲245.84 ▲0.0396.22 ▼20.8836.23 ▼8.66
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0335.93 ▲0.8434.12 ▲1.43
Add New Post /wp-admin/post-new.php1,520 ▼1323.27 ▲0.10617.09 ▼67.9859.74 ▼4.74
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.03100.56 ▼6.4541.74 ▼4.43

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • 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
Everything seems fine, however 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/maha-copyright-date/maha_copyright_date.php:47

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: date, display date, footer, display copyright, copyright

maha-copyright-date/maha_copyright_date.php 92% from 13 tests

Analyzing the main PHP file in "Maha Copyright Date" version 1.0.0
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("maha-copyright-date.php" instead of "maha_copyright_date.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1221416

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin