93% dashboard-posts-label-to-articles

Code Review | Dashboard Posts Labels To Articles

WordPress plugin Dashboard Posts Labels To Articles scored 93% from 54 tests.

About plugin

  • Plugin page: dashboard-posts-l...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.8.0
  • WordPress version: 5.8.1
  • First release: Jan 16, 2014
  • Latest release: Jan 16, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: mamunhpath (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 767 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼139.74ms] Passed 4 tests

An overview of server-side resources used by Dashboard Posts Labels To Articles
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0147.03 ▲17.94
Dashboard /wp-admin3.06 ▲0.0158.24 ▲7.06
Posts /wp-admin/edit.php3.12 ▲0.0146.27 ▼6.24
Add New Post /wp-admin/post-new.php5.42 ▼0.0197.40 ▼558.95
Media Library /wp-admin/upload.php3.01 ▲0.0133.59 ▼0.84

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dashboard Posts Labels To Articles
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.82 ▼0.2610.41 ▼0.4153.24 ▲1.58
Dashboard /wp-admin2,973 ▲395.90 ▼0.04137.55 ▼11.64118.96 ▼1.76
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0066.17 ▼7.3396.88 ▼0.98
Add New Post /wp-admin/post-new.php1,683 ▼018.80 ▲0.09385.65 ▼11.48117.80 ▲1.17
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.00150.85 ▼0.73127.92 ▲4.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dashboard-posts-label-to-articles/post_to_article.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% 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 to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

dashboard-posts-label-to-articles/post_to_article.php 85% from 13 tests

"Dashboard Posts Labels To Articles" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 177 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dashboard-posts-label-to-articles.php" instead of "post_to_article.php")

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
Everything looks great! No dangerous files found in this plugin26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192426

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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