78% seosamba-webmasters

Code Review | SeoSamba for WordPress Webmasters

WordPress plugin SeoSamba for WordPress Webmasters scored78%from 54 tests.

About plugin

  • Plugin page: seosamba-webmasters
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 26, 2017
  • Latest release: Oct 11, 2023
  • Number of updates: 15
  • Update frequency: every 153.5 days
  • Top authors: seosamba (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /4,154 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.10MB] [CPU: ▼2.27ms] Passed 4 tests

A check of server-side resources used by SeoSamba for WordPress Webmasters
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1037.34 ▼0.85
Dashboard /wp-admin3.41 ▲0.1045.87 ▼3.64
Posts /wp-admin/edit.php3.52 ▲0.1644.07 ▼1.33
Add New Post /wp-admin/post-new.php5.99 ▲0.1081.26 ▼3.24
Media Library /wp-admin/upload.php3.33 ▲0.1035.23 ▲0.49

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for SeoSamba for WordPress Webmasters
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.25 ▼0.111.57 ▼0.0939.76 ▼4.65
Dashboard /wp-admin2,235 ▲555.55 ▼0.1283.13 ▼6.1936.61 ▼6.86
Posts /wp-admin/edit.php2,143 ▲432.04 ▲0.0335.48 ▼1.4434.69 ▼3.05
Add New Post /wp-admin/post-new.php1,539 ▲423.15 ▲4.90660.40 ▲50.7152.78 ▼18.78
Media Library /wp-admin/upload.php1,446 ▲464.25 ▲0.0793.99 ▼13.7139.86 ▼6.03

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/seosamba-webmasters/seosamba-webmasters.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'SeosambaWebmasters' not found in wp-content/plugins/seosamba-webmasters/modules/admin.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'SeosambaWebmasters' not found in wp-content/plugins/seosamba-webmasters/includes/sitemap.php:9

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 96% 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
8 plugin tags: wordpress seo, google webmaster tools, xml sitemap, google sitemap, search engine rankings...

seosamba-webmasters/seosamba-webmasters.php 92% from 13 tests

The main PHP file in "SeoSamba for WordPress Webmasters" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)

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
No dangerous file extensions were detected17,436 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JSON1009,128
CSS520787,126
PHP515485810
SVG100306
JavaScript1122166

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.23
Average class complexity13.50
▷ Minimum class complexity3.00
▷ Maximum class complexity32.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods36
▷ Static methods12.78%
▷ Public methods1747.22%
▷ Protected methods1027.78%
▷ Private methods925.00%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants17
▷ Global constants15.88%
▷ Class constants1694.12%
▷ Public constants16100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/samba-logo.png12.98KB4.57KB▼ 64.77%