84% code-snippets-tags

Code Review | Code Snippets Tags

WordPress plugin Code Snippets Tags scored84%from 54 tests.

About plugin

  • Plugin page: code-snippets-tags
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.0
  • WordPress version: 6.3.1
  • First release: Mar 26, 2013
  • Latest release: Sep 5, 2015
  • Number of updates: 17
  • Update frequency: every 52.8 days
  • Top authors: bungeshea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,534 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.93ms] Passed 4 tests

An overview of server-side resources used by Code Snippets Tags
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.35 ▼6.79
Dashboard /wp-admin3.36 ▲0.0544.23 ▼8.27
Posts /wp-admin/edit.php3.47 ▲0.1147.44 ▼0.00
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.84 ▼7.78
Media Library /wp-admin/upload.php3.28 ▲0.0533.58 ▼4.87

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

Browser metrics Passed 4 tests

Checking browser requirements for Code Snippets Tags
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.71 ▼0.651.75 ▼0.0041.11 ▼5.12
Dashboard /wp-admin2,209 ▲214.87 ▼1.00106.81 ▼6.4443.38 ▼0.54
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0137.98 ▼6.6835.12 ▼1.12
Add New Post /wp-admin/post-new.php1,545 ▲2518.20 ▼4.88602.85 ▼79.4059.65 ▼2.43
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0295.43 ▼16.1844.57 ▼11.53

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/code-snippets-tags/code-snippets-tags.php:546

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: gui, code, category, tags, code-snippets-plugin...

code-snippets-tags/code-snippets-tags.php Passed 13 tests

The main file in "Code Snippets Tags" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
115 characters long description:
Adds support for adding tags to snippets to the Code Snippets WordPress plugin. Requires Code Snippets 1.8 or later

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected436 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP192207247
CSS2142107
PO File2194066
JavaScript10016

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin