79% wp-plc-tag

Code Review | WP PLC Tag

WordPress plugin WP PLC Tag scored79%from 54 tests.

About plugin

  • Plugin page: wp-plc-tag
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Feb 20, 2020
  • Latest release: Feb 23, 2020
  • Number of updates: 3
  • Update frequency: every 4.3 days
  • Top authors: oneplacewp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /430 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.38ms] Passed 4 tests

This is a short check of server-side resources used by WP PLC Tag
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.41 ▼1.16
Dashboard /wp-admin3.31 ▼0.0443.21 ▼17.58
Posts /wp-admin/edit.php3.36 ▲0.0048.10 ▲0.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.16 ▲0.86
Media Library /wp-admin/upload.php3.23 ▲0.0032.71 ▲1.25

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP PLC Tag
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.59 ▼0.791.47 ▼0.2737.01 ▼5.61
Dashboard /wp-admin2,209 ▲214.83 ▼0.98104.47 ▼11.2939.68 ▼3.92
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0840.75 ▲2.9035.33 ▼0.42
Add New Post /wp-admin/post-new.php1,514 ▼617.57 ▼5.61663.43 ▲30.7955.88 ▲0.33
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.0395.96 ▼9.0342.58 ▼0.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-plc-tag/includes/view/partials/tag-list.php
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-plc-tag/includes/view/settings/elementor.php:2
    • > PHP Warning
      Use of undefined constant WPPLC_TAG_MAIN_FILE - assumed 'WPPLC_TAG_MAIN_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-plc-tag/includes/loader.php on line 28
    • > PHP Notice
      Undefined variable: aItems in wp-content/plugins/wp-plc-tag/includes/view/partials/tag-list.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-plc-tag/includes/view/settings/general.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-plc-tag/includes/view/settings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function OnePlace\\Tag\\Modules\\add_action() in wp-content/plugins/wp-plc-tag/includes/Modules/Settings.php:32
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-plc-tag/includes/view/partials/tag-list.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wp-plc-tag/includes/elementor/widgets/tag-list.php:22
    • > PHP Notice
      Undefined variable: aSettings in wp-content/plugins/wp-plc-tag/includes/view/partials/tag-list.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: oneplace, elementor, api

wp-plc-tag/wp-plc-tag.php Passed 13 tests

The entry point to "WP PLC Tag" version 1.0.1 is a PHP file that has certain tags in its header comment area
69 characters long description:
onePlace Tags for Wordpress. Widgets and Shortcodes for onePlace Tags

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
No dangerous file extensions were detected455 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1186325455

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes375.00%
Methods24
▷ Static methods416.67%
▷ Public methods2187.50%
▷ Protected methods312.50%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png0.79KB0.48KB▼ 39.11%