84% netnovate-salessurvey

Code Review | salessurvey.de ebay Auktions Plugin

WordPress plugin salessurvey.de ebay Auktions Plugin scored84%from 54 tests.

About plugin

  • Plugin page: netnovate-salessu...
  • Plugin version: 1.31
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.5
  • WordPress version: 6.3.1
  • First release: Jun 19, 2018
  • Latest release: Aug 1, 2020
  • Number of updates: 19
  • Update frequency: every 40.7 days
  • Top authors: netnovate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /986 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.08MB] [CPU: ▼8.10ms] Passed 4 tests

A check of server-side resources used by salessurvey.de ebay Auktions Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.21 ▼6.64
Dashboard /wp-admin3.34 ▲0.0449.94 ▲0.66
Posts /wp-admin/edit.php3.39 ▲0.0449.26 ▲0.15
Add New Post /wp-admin/post-new.php5.47 ▼0.4275.17 ▼25.09
Media Library /wp-admin/upload.php3.26 ▲0.0435.20 ▼0.81
salessurvey Auctions /wp-admin/options-general.php?page=ss_options3.2333.15

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

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

Browser metrics Passed 4 tests

Checking browser requirements for salessurvey.de ebay Auktions Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲17713.47 ▼1.118.91 ▲7.1439.04 ▼1.82
Dashboard /wp-admin2,216 ▲395.69 ▲0.18108.67 ▲5.7657.22 ▲17.16
Posts /wp-admin/edit.php2,121 ▲212.24 ▲0.2138.57 ▼1.4934.99 ▼2.33
Add New Post /wp-admin/post-new.php7,172 ▲5,64618.98 ▼4.60954.94 ▲322.0767.47 ▲5.00
Media Library /wp-admin/upload.php1,418 ▲154.52 ▲0.3795.89 ▼5.9939.93 ▼5.58
salessurvey Auctions /wp-admin/options-general.php?page=ss_options9121.8328.8235.17

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_ss_auction_widget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_ss_badge_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/netnovate-salessurvey/inc/backend.php:95
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/netnovate-salessurvey/inc/frontend.php:71
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/netnovate-salessurvey/inc/widgets.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: listings, feedback, salessurvey, auktionen, bewertungen...

netnovate-salessurvey/netnovate-salessurvey.php 92% from 13 tests

The main file in "salessurvey.de ebay Auktions Plugin" v. 1.31 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:
  • Description: Keep the plugin description shorter than 140 characters (currently 292 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,917 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP418129911
PO File4316344777
JavaScript5546153
CSS212076

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity27.00
▷ Minimum class complexity14.00
▷ Maximum class complexity40.00
Average method complexity7.50
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions1694.12%
▷ Anonymous functions15.88%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/widget_template2.png2.36KB1.08KB▼ 54.35%
assets/img/widget_template4.png1.84KB0.79KB▼ 57.18%
assets/img/widget_template1.png2.73KB1.14KB▼ 58.41%
assets/img/widget_template3.png2.84KB1.39KB▼ 50.89%