78% sackson-web-data

Code Review | SacksonWeb Data

WordPress plugin SacksonWeb Data scored78%from 54 tests.

About plugin

  • Plugin page: sackson-web-data
  • Plugin version: 1.2.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Jul 13, 2022
  • Latest release: Nov 30, 2023
  • Number of updates: 14
  • Update frequency: every 36.0 days
  • Top authors: ehops32 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,279 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Server-side resources used by SacksonWeb Data
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.17 ▼3.89
Dashboard /wp-admin3.33 ▼0.0248.14 ▼17.72
Posts /wp-admin/edit.php3.38 ▲0.0251.35 ▲1.57
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.81 ▲4.22
Media Library /wp-admin/upload.php3.25 ▲0.0238.69 ▲4.22
Sackson Web Pro - Settings /wp-admin/options-general.php?page=sackson-web-premium-settings3.2531.46

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
sacksonweb_last_log-wp.com
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for SacksonWeb Data
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13413.75 ▼1.037.23 ▲5.4438.24 ▼7.02
Dashboard /wp-admin2,197 ▲195.62 ▼0.1394.39 ▼16.2344.14 ▲0.72
Posts /wp-admin/edit.php2,108 ▲81.97 ▲0.0139.45 ▲2.1136.21 ▲2.81
Add New Post /wp-admin/post-new.php1,533 ▲723.22 ▲0.14676.90 ▲62.7751.50 ▼13.74
Media Library /wp-admin/upload.php1,411 ▲174.20 ▼0.00110.06 ▲13.3049.18 ▲8.39
Sackson Web Pro - Settings /wp-admin/options-general.php?page=sackson-web-premium-settings8512.0126.1330.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • sacksonweb_last_log-wp.com
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/sackson-web-data/admin/partials/sacksonweb-data-admin-display.php
    • > /wp-content/plugins/sackson-web-data/public/partials/sacksonweb-data-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/sackson-web-data/includes/class-sacksonweb-data-settings.php:184

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (This is the settings and opt-in page of this plugin.) image not found
Please take inspiration from this readme.txt

sackson-web-data/sacksonweb-data.php 85% from 13 tests

"SacksonWeb Data" version 1.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("sackson-web-data.php" instead of "sacksonweb-data.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin701 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP15278776695
JavaScript24546
CSS2080

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.20
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods63
▷ Static methods69.52%
▷ Public methods5790.48%
▷ Protected methods00.00%
▷ Private methods69.52%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png34.15KB12.80KB▼ 62.52%