84% all-post-statuses-for-add-link

Code Review | All Post Statuses for Add Link

WordPress plugin All Post Statuses for Add Link scored84%from 54 tests.

About plugin

  • Plugin page: all-post-statuses...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.2.3
  • WordPress version: 6.3.1
  • First release: Feb 17, 2015
  • Latest release: Oct 1, 2019
  • Number of updates: 10
  • Update frequency: every 169.0 days
  • Top authors: thewanderingbrit (70%)deployer (40%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /1,432 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by All Post Statuses for Add Link
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.32 ▼2.49
Dashboard /wp-admin3.31 ▲0.0149.52 ▼3.02
Posts /wp-admin/edit.php3.36 ▲0.0050.45 ▲0.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.36 ▼4.62
Media Library /wp-admin/upload.php3.23 ▲0.0040.08 ▲6.13

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

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

Browser metrics Passed 4 tests

A check of browser resources used by All Post Statuses for Add Link
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.33 ▼1.054.48 ▲2.4643.06 ▼3.58
Dashboard /wp-admin2,224 ▲214.85 ▼1.03100.30 ▼7.0443.22 ▼5.38
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0241.76 ▲1.3935.92 ▼0.06
Add New Post /wp-admin/post-new.php1,554 ▲2818.25 ▲0.62654.43 ▲27.9469.18 ▲16.49
Media Library /wp-admin/upload.php1,394 ▼64.21 ▲0.01102.77 ▲1.0246.79 ▲1.47

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/all-post-statuses-for-add-link/all-post-statuses-for-add-link.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/all-post-statuses-for-add-link/trunk/all-post-statuses-for-add-link.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/all-post-statuses-for-add-link/includes/add-post-statuses.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/all-post-statuses-for-add-link/trunk/includes/add-post-statuses.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: wp_link_query, private, custom, post status, add link...

all-post-statuses-for-add-link/all-post-statuses-for-add-link.php 92% from 13 tests

The main PHP file in "All Post Statuses for Add Link" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin20 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3101720

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.33
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected