74% distributionlist

Code Review | WP-Admin Distribution List

WordPress plugin WP-Admin Distribution List scored74%from 54 tests.

About plugin

  • Plugin page: distributionlist
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Oct 29, 2015
  • Latest release: Feb 7, 2016
  • Number of updates: 8
  • Update frequency: every 12.6 days
  • Top authors: luckychingi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /927 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▼0.94MB] [CPU: ▼38.17ms] Passed 4 tests

An overview of server-side resources used by WP-Admin Distribution List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.00 ▼2.04
Dashboard /wp-admin3.01 ▼0.3026.96 ▼28.59
Posts /wp-admin/edit.php3.01 ▼0.3522.88 ▼32.54
Add New Post /wp-admin/post-new.php3.01 ▼2.8929.39 ▼81.78
Media Library /wp-admin/upload.php3.01 ▼0.2324.67 ▼9.76

Server storage [IO: ▲0.16MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP-Admin Distribution List
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.19 ▼0.371.84 ▼0.0041.78 ▼3.06
Dashboard /wp-admin2,214 ▲405.62 ▼0.0494.98 ▼34.5241.09 ▼19.32
Posts /wp-admin/edit.php2,119 ▲222.02 ▲0.0341.16 ▼0.7238.05 ▲2.47
Add New Post /wp-admin/post-new.php1,539 ▲1123.00 ▼0.05686.76 ▲15.7261.40 ▲6.06
Media Library /wp-admin/upload.php1,413 ▲164.18 ▼0.03101.64 ▼1.0446.57 ▲1.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/distributionlist/admin/Distributionlist.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/distributionlist/Distributionlist.php:11

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

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === distributionlist === )
The official readme.txt might help

distributionlist/Distributionlist.php 92% from 13 tests

The principal PHP file in "WP-Admin Distribution List" v. 0.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("distributionlist.php" instead of "Distributionlist.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected188 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2513185
JavaScript1052
CSS1041

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin