10% symbiostock

Code Review | Symbiostock - Sell Photos Online For Free!

WordPress plugin Symbiostock - Sell Photos Online For Free! scored10%from 54 tests.

About plugin

  • Plugin page: symbiostock
  • Plugin version: 6.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.6.1
  • WordPress version: 6.3.1
  • First release: May 9, 2015
  • Latest release: Feb 4, 2021
  • Number of updates: 137
  • Update frequency: every 15.3 days
  • Top authors: Symbiostock (100%)

Code review

54 tests

User reviews

48 reviews

Install metrics

400+ active /28,928 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/symbiostock/ss-env-check.php+23
    Undefined property: ssEnvCheck::$sslite

Server metrics [RAM: ▼1.86MB] [CPU: ▼51.82ms] Passed 4 tests

An overview of server-side resources used by Symbiostock - Sell Photos Online For Free!
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.334.96 ▼32.89
Dashboard /wp-admin2.15 ▼1.166.88 ▼39.95
Posts /wp-admin/edit.php2.15 ▼1.216.57 ▼41.08
Add New Post /wp-admin/post-new.php2.15 ▼3.745.76 ▼93.34
Media Library /wp-admin/upload.php2.15 ▼1.088.61 ▼29.86

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Symbiostock - Sell Photos Online For Free!
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9414.79 ▲0.551.84 ▼0.2843.75 ▼0.10
Dashboard /wp-admin2,243 ▲525.84 ▲0.9497.07 ▼13.4242.09 ▲3.27
Posts /wp-admin/edit.php2,129 ▲402.12 ▲0.1340.43 ▲0.6139.34 ▲5.54
Add New Post /wp-admin/post-new.php1,570 ▲4723.36 ▲0.10654.50 ▼28.0051.38 ▼7.23
Media Library /wp-admin/upload.php1,428 ▲434.22 ▲0.05102.95 ▼8.8545.16 ▲3.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/symbiostock/ss-env-check.php+30
    Undefined property: ssEnvCheck::$sspro
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/symbiostock/ss-env-check.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to a member function disable_direct_access() on null in wp-content/plugins/symbiostock/admin-upload.php:3
    • > PHP Notice
      Undefined variable: currSS_L in wp-content/plugins/symbiostock/tools-imagemanipulation.php on line 3
    • > PHP Notice
      Undefined variable: currSS_L in wp-content/plugins/symbiostock/admin-global.php on line 3
    • > PHP Notice
      Undefined variable: currSS_L in wp-content/plugins/symbiostock/front-ping.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/symbiostock/ss-env-check.php:18
    • > PHP Fatal error
      Uncaught Error: Call to a member function disable_direct_access() on null in wp-content/plugins/symbiostock/front-ping.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function disable_direct_access() on null in wp-content/plugins/symbiostock/symbiostock-init.php:3
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/symbiostock/ss-env-check.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to a member function disable_direct_access() on null in wp-content/plugins/symbiostock/tools-imagemanipulation.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 76 tag instead of maximum 10
You can look at the official readme.txt

symbiostock/symbiostock.php 92% from 13 tests

The main PHP script in "Symbiostock - Sell Photos Online For Free!" version 6.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected678 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP719048650
SVG10028

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity13.75
▷ Minimum class complexity3.00
▷ Maximum class complexity37.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/ss_ico.png2.75KB2.19KB▼ 20.55%
assets/ss_watermark.png60.92KB30.56KB▼ 49.83%
assets/ss_ico_b.png2.87KB2.19KB▼ 23.90%
assets/ss_fullico.png4.25KB3.13KB▼ 26.42%