84% plugin-activation-status

Code Review | Plugin Activation Status

WordPress plugin Plugin Activation Status scored84%from 54 tests.

About plugin

  • Plugin page: plugin-activation...
  • Plugin version: 1.0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.4
  • WordPress version: 6.3.1
  • First release: May 10, 2013
  • Latest release: Apr 3, 2018
  • Number of updates: 10
  • Update frequency: every 178.9 days
  • Top authors: cgrymala (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

200+ active /18,734 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.43ms] Passed 4 tests

An overview of server-side resources used by Plugin Activation Status
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.71 ▲3.22
Dashboard /wp-admin3.38 ▲0.0851.21 ▲1.80
Posts /wp-admin/edit.php3.50 ▲0.1447.51 ▼7.08
Add New Post /wp-admin/post-new.php5.96 ▲0.0891.14 ▼8.69
Media Library /wp-admin/upload.php3.30 ▲0.0835.52 ▲0.27

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Activation Status
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.061.82 ▼0.1343.80 ▲1.35
Dashboard /wp-admin2,198 ▲185.62 ▼0.0187.81 ▼1.5037.76 ▼2.43
Posts /wp-admin/edit.php2,100 ▼12.05 ▼0.0135.32 ▼3.1433.83 ▼5.33
Add New Post /wp-admin/post-new.php1,545 ▲1423.07 ▼0.06626.43 ▼51.6066.44 ▲5.80
Media Library /wp-admin/upload.php1,403 ▲34.13 ▼0.10101.89 ▼7.0045.62 ▼1.50

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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: Call to undefined function plugin_dir_path() in wp-content/plugins/plugin-activation-status/plugin-activation-status.php:15

User-side errors Passed 1 test

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

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
These attributes need your attention:
  • Screenshots: Screenshot #1 (An example of the list of plugins that's generated by the plugin) image not found
Please take inspiration from this readme.txt

plugin-activation-status/plugin-activation-status.php 92% from 13 tests

Analyzing the main PHP file in "Plugin Activation Status" version 1.0.2.1
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 204 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected461 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP253125359
Markdown143064
CSS17838

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity64.00
▷ Minimum class complexity64.00
▷ Maximum class complexity64.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
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
There are no PNG files in this plugin