78% snufel-free-guest-post

Code Review | Snufel Free Guest Posting

WordPress plugin Snufel Free Guest Posting scored 78% from 54 tests.

About plugin

  • Plugin page: snufel-free-guest...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 14, 2023
  • Latest release: Mar 14, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: snufel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 226 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.37ms] Passed 4 tests

Server-side resources used by Snufel Free Guest Posting
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0336.75 ▼3.74
Dashboard /wp-admin3.33 ▲0.0344.21 ▼7.10
Posts /wp-admin/edit.php3.38 ▲0.0346.45 ▼8.90
Add New Post /wp-admin/post-new.php5.93 ▲0.0593.14 ▼1.75
Media Library /wp-admin/upload.php3.25 ▲0.0336.76 ▲4.21
Snufel Free Guest Post Settings /wp-admin/options-general.php?page=snufel-free-guest-post-settings3.2231.99

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Snufel Free Guest Posting
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.60 ▼0.855.31 ▲3.4740.53 ▼4.67
Dashboard /wp-admin2,217 ▲355.88 ▲0.04108.33 ▲4.8342.23 ▼1.98
Posts /wp-admin/edit.php2,100 ▲322.01 ▲0.0039.43 ▲5.2936.15 ▲3.04
Add New Post /wp-admin/post-new.php1,521 ▼1217.56 ▼5.55657.87 ▼26.0452.82 ▼7.41
Media Library /wp-admin/upload.php1,393 ▲54.19 ▼0.0299.84 ▼15.4742.42 ▼8.15
Snufel Free Guest Post Settings /wp-admin/options-general.php?page=snufel-free-guest-post-settings9052.0622.7729.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% 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 0% 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/snufel-free-guest-post/admin/partials/snufel-free-guest-admin-display.php
    • > /wp-content/plugins/snufel-free-guest-post/public/partials/snufel-free-guest-public-display.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/snufel-free-guest-post/public/class-snufel-free-guest-public.php:109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/snufel-free-guest-post/admin/class-snufel-free-guest-admin.php:284

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: backlink, free guestpost, guestposting, seo, guestpost

snufel-free-guest-post/snufel-free-guest.php 77% from 13 tests

"Snufel Free Guest Posting" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("snufel-free-guest-post.php" instead of "snufel-free-guest.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin577 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12207553537
CSS23834
JavaScript24546

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.25
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2985.29%
▷ Protected methods00.00%
▷ Private methods514.71%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin