84% profi-fotos-online

Code Review | PROFI-FOTOS-online.com | Online-Shop für Fotografen

WordPress plugin PROFI-FOTOS-online.com | Online-Shop für Fotografen scored84%from 54 tests.

About plugin

  • Plugin page: profi-fotos-online
  • Plugin version: 1.0.28
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 28, 2017
  • Latest release: Oct 1, 2023
  • Number of updates: 66
  • Update frequency: every 31.9 days
  • Top authors: profifotosonline (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /4,617 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.78ms] Passed 4 tests

A check of server-side resources used by PROFI-FOTOS-online.com | Online-Shop für Fotografen
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1239.91 ▲1.90
Dashboard /wp-admin3.36 ▲0.0146.04 ▼13.95
Posts /wp-admin/edit.php3.41 ▲0.0547.89 ▲0.88
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.61 ▼11.96
Media Library /wp-admin/upload.php3.28 ▲0.0537.54 ▲6.18

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for PROFI-FOTOS-online.com | Online-Shop für Fotografen
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.26 ▼1.112.00 ▲0.3840.90 ▼0.07
Dashboard /wp-admin2,222 ▲344.94 ▼0.8796.85 ▼7.6168.75 ▲24.23
Posts /wp-admin/edit.php2,105 ▲161.98 ▼0.0236.83 ▼1.6132.58 ▼2.00
Add New Post /wp-admin/post-new.php1,534 ▲623.22 ▲4.93704.30 ▲103.1054.06 ▲2.47
Media Library /wp-admin/upload.php1,401 ▲164.24 ▲0.06115.24 ▲13.8945.31 ▲1.01

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/profi-fotos-online/profi-fotos-online.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can take inspiration from this readme.txt

profi-fotos-online/profi-fotos-online.php Passed 13 tests

"PROFI-FOTOS-online.com | Online-Shop für Fotografen" version 1.0.28's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
52 characters long description:
PROFI-FOTOS-online.com | Online-Shop für Fotografen

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected706 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP485177607
CSS20399

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity94.00
▷ Minimum class complexity94.00
▷ Maximum class complexity94.00
Average method complexity16.50
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods466.67%
▷ Protected methods00.00%
▷ Private methods233.33%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.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
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-bg-white.png0.89KB0.37KB▼ 58.25%
images/icon-bg-trans.png0.74KB0.40KB▼ 46.05%
images/hilfe-session-screen.png44.46KB44.28KB0.40%
images/icon-blue.png0.91KB0.38KB▼ 58.22%
images/icon-128x128.png1.76KB0.89KB▼ 49.14%