68% zengin-sipa-rich-snippets

Code Review | Zengin Sipa Rich Snippets

WordPress plugin Zengin Sipa Rich Snippets scored68%from 54 tests.

About plugin

  • Plugin page: zengin-sipa-rich-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 25, 2017
  • Latest release: May 23, 2017
  • Number of updates: 11
  • Update frequency: every 2.6 days
  • Top authors: themrigi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /741 total downloads

Benchmarks

Plugin footprint 65% 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.19MB] [CPU: ▼1.57ms] Passed 4 tests

Server-side resources used by Zengin Sipa Rich Snippets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1443.23 ▲3.80
Dashboard /wp-admin3.57 ▲0.2353.63 ▼5.78
Posts /wp-admin/edit.php3.62 ▲0.2750.21 ▼2.05
Add New Post /wp-admin/post-new.php6.09 ▲0.2096.97 ▼2.24
Media Library /wp-admin/upload.php3.43 ▲0.2039.55 ▲5.79
Sipa Rich Snippets /wp-admin/admin.php?page=sipa_admin_settings3.4535.95
Listing /wp-admin/admin.php?page=sipa_admin_rates3.4538.79
Manuel Rating /wp-admin/admin.php?page=sipa_admin_make_rate3.4034.53

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: 2 new tables, 6 new options
New tables
wp_sipa_rating
wp_sipa_settings
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Zengin Sipa Rich Snippets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲20413.67 ▼0.9810.66 ▲9.0545.05 ▲4.27
Dashboard /wp-admin2,230 ▲424.85 ▼0.26127.64 ▲17.6364.46 ▲23.52
Posts /wp-admin/edit.php2,116 ▲242.00 ▼0.0634.53 ▼7.6334.03 ▼1.46
Add New Post /wp-admin/post-new.php1,569 ▲2519.16 ▲0.94584.95 ▼17.8752.75 ▲4.92
Media Library /wp-admin/upload.php1,418 ▲364.19 ▲0.0096.17 ▼1.6739.74 ▼2.62
Sipa Rich Snippets /wp-admin/admin.php?page=sipa_admin_settings1,0992.0224.3828.63
Listing /wp-admin/admin.php?page=sipa_admin_rates9292.0624.9529.98
Manuel Rating /wp-admin/admin.php?page=sipa_admin_make_rate8742.0625.0528.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_sipa_rating
    • wp_sipa_settings
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/zengin-sipa-rich-snippets/zengin-sipa.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'GOKSELDB' not found in wp-content/plugins/zengin-sipa-rich-snippets/inc/SipaSettingsDB.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'GOKSELDB' not found in wp-content/plugins/zengin-sipa-rich-snippets/inc/SipaAdminDB.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

zengin-sipa-rich-snippets/zengin-sipa.php 92% from 13 tests

The main file in "Zengin Sipa Rich Snippets" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 ("zengin-sipa-rich-snippets.php" instead of "zengin-sipa.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,681 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP325493182,496
CSS114395
JavaScript125590

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity14.75
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods125
▷ Static methods3931.20%
▷ Public methods7963.20%
▷ Protected methods2721.60%
▷ Private methods1915.20%
Functions15
▷ Named functions1280.00%
▷ Anonymous functions320.00%
Constants14
▷ Global constants1071.43%
▷ Class constants428.57%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/stars_orange.png0.78KB0.80KB0.00%
assets/img/stars_grey.png0.78KB0.80KB0.00%