84% findshop

Code Review | FindShop

WordPress plugin FindShop scored84%from 54 tests.

About plugin

  • Plugin page: findshop
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 7, 2019
  • Latest release: Aug 7, 2019
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: findshop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /542 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by FindShop
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.21 ▼4.55
Dashboard /wp-admin3.32 ▲0.0155.22 ▼5.19
Posts /wp-admin/edit.php3.37 ▲0.0150.67 ▲2.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.42 ▼16.37
Media Library /wp-admin/upload.php3.24 ▲0.0136.06 ▼2.01

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for FindShop
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.74 ▲0.561.84 ▼0.5542.75 ▼0.23
Dashboard /wp-admin2,212 ▲305.88 ▼0.13129.34 ▲17.0447.77 ▲7.16
Posts /wp-admin/edit.php2,095 ▲62.04 ▼0.0144.05 ▲5.2839.63 ▲2.88
Add New Post /wp-admin/post-new.php1,539 ▲2521.12 ▲3.46663.55 ▼29.3270.51 ▼2.30
Media Library /wp-admin/upload.php1,388 ▲34.23 ▼0.00113.78 ▲11.0847.60 ▲4.15

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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
Even though no errors were found, 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/findshop/admin/findshop_settings.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

findshop/woocommerce-findshop-co.php 92% from 13 tests

The main file in "FindShop" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("findshop.php" instead of "woocommerce-findshop-co.php")

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
Good job! No executable or dangerous file extensions detected670 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7107117495
JavaScript1102174
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.00
▷ Minimum class complexity2.00
▷ Maximum class complexity36.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods34
▷ Static methods823.53%
▷ Public methods3088.24%
▷ Protected methods00.00%
▷ Private methods411.76%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin