83% affilicode-tag-setting

Code Review | Affilicode-Tag-Setting

WordPress plugin Affilicode-Tag-Setting scored 83% from 54 tests.

About plugin

  • Plugin page: affilicode-tag-se...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.1-5.5
  • WordPress version: 6.3.1
  • First release: May 15, 2020
  • Latest release: Aug 6, 2020
  • Number of updates: 11
  • Update frequency: every 7.7 days
  • Top authors: leafworks (81.82%)Otto42 (27.27%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 537 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 gracefully, with no errors

Server metrics [RAM: ▼0.69MB] [CPU: ▼11.58ms] Passed 4 tests

This is a short check of server-side resources used by Affilicode-Tag-Setting
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.47 ▲5.35
Dashboard /wp-admin3.31 ▲0.0145.14 ▲0.22
Posts /wp-admin/edit.php3.36 ▲0.0147.75 ▼0.07
Add New Post /wp-admin/post-new.php3.10 ▼2.7937.72 ▼46.71
Media Library /wp-admin/upload.php3.24 ▲0.0133.44 ▲0.24

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Affilicode-Tag-Setting
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.19 ▼0.131.70 ▼0.1743.58 ▲3.58
Dashboard /wp-admin2,209 ▲35.90 ▲0.06107.45 ▲3.2042.55 ▲4.05
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0140.03 ▲3.4235.65 ▲1.99
Add New Post /wp-admin/post-new.php6,475 ▲4,94120.50 ▼2.54941.60 ▲305.99131.00 ▲77.28
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0196.85 ▲2.4543.17 ▲1.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • 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 | 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/affilicode-tag-setting/affilicode-tag-setting.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Please add at least on tag
  • Screenshots: Add a description for screenshot #1 in affilicode-tag-setting/assets to your readme.txt
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

affilicode-tag-setting/affilicode-tag-setting.php Passed 13 tests

"Affilicode-Tag-Setting" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
129 characters long description:
固定ページと投稿ページにアフィリコード・システムで発行したタグの設定が可能になります。

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin69 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP59869

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
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%
Functions6
▷ Named functions6100.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 were not PNG files found in your plugin