84% seznam-webmaster

Code Review | Seznam Webmaster

WordPress plugin Seznam Webmaster scored84%from 54 tests.

About plugin

  • Plugin page: seznam-webmaster
  • Plugin version: 1.4.6
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 2, 2019
  • Latest release: Aug 14, 2023
  • Number of updates: 45
  • Update frequency: every 34.1 days
  • Top authors: Lukaaashek (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /3,181 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.11MB] [CPU: ▼10.87ms] Passed 4 tests

Analyzing server-side resources used by Seznam Webmaster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0830.67 ▼13.78
Dashboard /wp-admin3.43 ▲0.1248.70 ▼5.70
Posts /wp-admin/edit.php3.54 ▲0.1850.23 ▼0.25
Add New Post /wp-admin/post-new.php6.03 ▲0.1497.05 ▼23.75
Media Library /wp-admin/upload.php3.35 ▲0.1237.48 ▲0.86
Logy /wp-admin/admin.php?page=seznam-webmaster-logs3.3235.15
API klíče /wp-admin/admin.php?page=seznam-webmaster-api3.3234.02
Reindexace webu /wp-admin/admin.php?page=seznam-webmaster-reindex-all3.3232.73
Stav webu /wp-admin/admin.php?page=seznam-webmaster3.3226.88

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Seznam Webmaster
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲11113.28 ▼1.101.82 ▲0.0144.00 ▼0.07
Dashboard /wp-admin2,266 ▲784.92 ▲0.0499.21 ▼8.8941.58 ▲4.01
Posts /wp-admin/edit.php2,149 ▲602.07 ▲0.0142.36 ▼0.7237.14 ▲0.74
Add New Post /wp-admin/post-new.php1,453 ▼8917.90 ▼0.48554.02 ▼109.6647.02 ▼6.16
Media Library /wp-admin/upload.php1,442 ▲574.28 ▲0.04102.39 ▼5.2946.12 ▲1.92
Logy /wp-admin/admin.php?page=seznam-webmaster-logs8172.0926.0626.91
API klíče /wp-admin/admin.php?page=seznam-webmaster-api8912.0925.3130.80
Reindexace webu /wp-admin/admin.php?page=seznam-webmaster-reindex-all8742.2326.4126.73
Stav webu /wp-admin/admin.php?page=seznam-webmaster8312.0926.1322.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/seznam-webmaster/seznam-webmaster.php:21

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
There were not plugin tags detected

seznam-webmaster/seznam-webmaster.php 92% from 13 tests

The primary PHP file in "Seznam Webmaster" version 1.4.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 196 characters long)

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 plugin929 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6151189902
JavaScript14027

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity13.60
▷ Minimum class complexity4.00
▷ Maximum class complexity24.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/metatag.png1.93KB1.73KB▼ 10.24%