84% thebing-snippet

Code Review | Fidelo Snippet

WordPress plugin Fidelo Snippet scored84%from 54 tests.

About plugin

  • Plugin page: thebing-snippet
  • Plugin version: 1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.8
  • WordPress version: 6.3.1
  • First release: May 30, 2014
  • Latest release: Feb 14, 2022
  • Number of updates: 46
  • Update frequency: every 61.3 days
  • Top authors: thebingsoftware (73.91%)jprangenberg1 (28.26%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,053 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼11.01ms] Passed 4 tests

An overview of server-side resources used by Fidelo Snippet
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.29 ▼4.71
Dashboard /wp-admin3.38 ▲0.0837.39 ▼9.55
Posts /wp-admin/edit.php3.42 ▲0.0645.42 ▼3.72
Add New Post /wp-admin/post-new.php6.06 ▲0.1774.40 ▼26.05
Media Library /wp-admin/upload.php3.32 ▲0.0931.24 ▼2.72

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

Browser metrics Passed 4 tests

A check of browser resources used by Fidelo Snippet
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.25 ▼1.491.60 ▼0.1440.40 ▼3.31
Dashboard /wp-admin2,222 ▲315.85 ▲0.96114.59 ▲3.8442.76 ▲0.11
Posts /wp-admin/edit.php2,105 ▲162.04 ▲0.0535.01 ▼6.3129.06 ▼9.14
Add New Post /wp-admin/post-new.php1,546 ▲423.47 ▲5.06638.12 ▲28.6151.06 ▼9.36
Media Library /wp-admin/upload.php1,404 ▲194.29 ▲0.0496.69 ▲2.0940.43 ▼1.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/thebing-snippet/thebingsnippet.php:16

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 93% 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
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === thebing-snippet === )
You can take inspiration from this readme.txt

thebing-snippet/thebingsnippet.php 92% from 13 tests

The principal PHP file in "Fidelo Snippet" v. 1.12 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("thebing-snippet.php" instead of "thebingsnippet.php")

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
Good job! No executable or dangerous file extensions detected1,334 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP64104651,334

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity88.00
▷ Minimum class complexity51.00
▷ Maximum class complexity145.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods58
▷ Static methods2136.21%
▷ Public methods4781.03%
▷ Protected methods35.17%
▷ Private methods813.79%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin