84% fotobuck-compressor

Code Review | Fotobuck Compressor

WordPress plugin Fotobuck Compressor scored84%from 54 tests.

About plugin

  • Plugin page: fotobuck-compressor
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 9, 2018
  • Latest release: Jun 9, 2018
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: jaedm97 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /616 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.07MB] [CPU: ▼15.80ms] Passed 4 tests

This is a short check of server-side resources used by Fotobuck Compressor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1643.09 ▼1.05
Dashboard /wp-admin3.27 ▼0.0329.85 ▼24.31
Posts /wp-admin/edit.php3.35 ▼0.0132.51 ▼17.55
Add New Post /wp-admin/post-new.php5.59 ▼0.3073.54 ▼17.50
Media Library /wp-admin/upload.php3.30 ▲0.0730.74 ▼3.85
Compressor /wp-admin/upload.php?page=image-compressor3.2626.73

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Fotobuck Compressor: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲12814.73 ▲0.451.67 ▲0.0445.42 ▲2.15
Dashboard /wp-admin2,277 ▲1006.38 ▲0.73109.95 ▲9.4035.57 ▼7.54
Posts /wp-admin/edit.php2,211 ▲1113.59 ▲1.5745.98 ▲7.7129.27 ▼4.53
Add New Post /wp-admin/post-new.php1,570 ▲4418.24 ▼4.76599.40 ▼22.6646.90 ▼1.20
Media Library /wp-admin/upload.php1,444 ▲474.46 ▲0.2880.89 ▼15.6442.20 ▲0.93
Compressor /wp-admin/upload.php?page=image-compressor9573.2140.4930.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/upload.php?page=image-compressor
    • > Warning in wp-content/plugins/fotobuck-compressor/fotobuck-compressor.php+59
    time() expects exactly 0 parameters, 1 given

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: You can look at the official readme.txt

fotobuck-compressor/fotobuck-compressor.php Passed 13 tests

The main file in "Fotobuck Compressor" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
This WordPress plugin perfectly compresses images of all sizes!

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
There were no executable files found in this plugin9,569 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS245166,576
SVG1002,116
PHP828977795
JavaScript231082

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity31.40
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods67
▷ Static methods00.00%
▷ Public methods5074.63%
▷ Protected methods00.00%
▷ Private methods1725.37%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin