83% plugin-activation-date

Code Review | Plugin Activation Date

WordPress plugin Plugin Activation Date scored83%from 54 tests.

About plugin

  • Plugin page: plugin-activation...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Sep 9, 2012
  • Latest release: Oct 20, 2012
  • Number of updates: 10
  • Update frequency: every 4.1 days
  • Top authors: maor (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

400+ active /5,251 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Plugin Activation Date
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.51 ▼1.28
Dashboard /wp-admin3.32 ▲0.0245.89 ▼6.34
Posts /wp-admin/edit.php3.37 ▲0.0248.05 ▲2.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.37 ▼7.55
Media Library /wp-admin/upload.php3.25 ▲0.0235.82 ▲2.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
pad_display_relative_date
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
pad_activated_plugins

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Activation Date
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.40 ▼1.002.01 ▼0.0044.64 ▼1.05
Dashboard /wp-admin2,203 ▲265.91 ▲1.04106.35 ▼0.3348.37 ▲4.11
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0339.57 ▼1.9034.81 ▼2.12
Add New Post /wp-admin/post-new.php1,533 ▲1023.02 ▼0.19651.64 ▼10.7851.59 ▲1.31
Media Library /wp-admin/upload.php1,385 ▲34.18 ▼0.0595.96 ▼3.8841.96 ▼0.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means 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
Please 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 add_filter() in wp-content/plugins/plugin-activation-date/plugin-activation-date.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (The "Last Activated" column in the plugins dashboard screen) image missing
You can take inspiration from this readme.txt

plugin-activation-date/plugin-activation-date.php 85% from 13 tests

The entry point to "Plugin Activation Date" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected76 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2179676

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.PNG29.49KB14.34KB▼ 51.36%
screenshot-1.png29.49KB14.34KB▼ 51.36%