67% tinyfier-wp

Code Review | tinyfier-wp

WordPress plugin tinyfier-wp scored67%from 54 tests.

About plugin

  • Plugin page: tinyfier-wp
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 3, 2014
  • Latest release: Mar 4, 2014
  • Number of updates: 7
  • Update frequency: every 0.7 days
  • Top authors: ideatic (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,846 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.30MB] [CPU: ▼15.45ms] Passed 4 tests

An overview of server-side resources used by tinyfier-wp
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.366.20 ▼41.08
Dashboard /wp-admin3.38 ▲0.0344.66 ▼17.61
Posts /wp-admin/edit.php3.50 ▲0.1449.72 ▲2.25
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.90 ▼3.39
Media Library /wp-admin/upload.php3.31 ▲0.0733.76 ▲0.28
Tinyfier /wp-admin/options-general.php?page=tinyfier3.2732.24

Server storage [IO: ▲11.39MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Just a few items left to fix
  • Illegal file modification detected: 29 files (961.72KB) outside of "wp-content/plugins/tinyfier-wp/" and "wp-content/uploads/"
    • (new file) wp-content/tinyfier-cache/tynifier_482b80457e997d0ea73151dbf0bdaed9_1696829338.js.gzip
    • (new file) wp-content/tinyfier-cache/tynifier_4ba2e1435e2973ac8f09c4514d72e4ea_1696829338.css.deflate
    • (new file) wp-content/tinyfier-cache/tynifier_482b80457e997d0ea73151dbf0bdaed9_1696829338.js
    • (new file) wp-content/tinyfier-cache/tynifier_482b80457e997d0ea73151dbf0bdaed9_1696829338.js.deflate
    • (new file) wp-content/tinyfier-cache/tynifier_29b2f957426dbe1bd5e547cfbea5e3b4_1696829338.css
    • (new file) wp-content/tinyfier-cache/tynifier_4ba2e1435e2973ac8f09c4514d72e4ea_1696829338.css.gzip
    • (new file) wp-content/tinyfier-cache/tynifier_29b2f957426dbe1bd5e547cfbea5e3b4_1696829338.css.gzip
    • (new file) wp-content/tinyfier-cache/tynifier_29b2f957426dbe1bd5e547cfbea5e3b4_1696829338.css.deflate
    • (new file) wp-content/tinyfier-cache/tynifier_4ba2e1435e2973ac8f09c4514d72e4ea_1696829338.css
    • (new file) wp-content/assets.php
    • ...
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for tinyfier-wp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4513.21 ▼1.355.41 ▲3.3036.69 ▼6.22
Dashboard /wp-admin2,210 ▲254.86 ▼0.0697.40 ▼5.7339.56 ▼0.33
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0438.61 ▼3.0535.88 ▲1.74
Add New Post /wp-admin/post-new.php1,545 ▲1218.51 ▼4.74626.02 ▼42.3255.68 ▲1.38
Media Library /wp-admin/upload.php1,392 ▲74.24 ▼0.0492.56 ▼13.1239.96 ▼15.48
Tinyfier /wp-admin/options-general.php?page=tinyfier8332.0523.4726.75

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% 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 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/tinyfier-wp/Tinyfier/tinyfier.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_feed() in wp-content/plugins/tinyfier-wp/TinyfierWP.php:23

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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Requires at least: Version format is invalid
You can take inspiration from this readme.txt

tinyfier-wp/plugin.php 85% from 13 tests

The entry point to "tinyfier-wp" version 0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("tinyfier-wp.php" instead of "plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)

Code Analysis 3% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
It is important to fix the following items
  • For security reasons, never distribute binary or executable files with your plugin
    • .exe - Executable in Windows
      • wp-content/plugins/tinyfier-wp/Tinyfier/Image/tools/gifsicle/gifsicle.exe
      • wp-content/plugins/tinyfier-wp/Tinyfier/Image/tools/jpegtran/jpegtran.exe
      • wp-content/plugins/tinyfier-wp/Tinyfier/Image/tools/optipng/optipng.exe
      • wp-content/plugins/tinyfier-wp/Tinyfier/Image/tools/pngout/pngout.exe
      • wp-content/plugins/tinyfier-wp/Tinyfier/Image/tools/pngquant/pngquant.exe
7,293 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP211,4811,3887,275
Markdown17018

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Method cyclomatic complexity should be reduced to less than 100 (currently 155)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity54.13
▷ Minimum class complexity1.00
▷ Maximum class complexity352.00
Average method complexity5.79
▷ Minimum method complexity1.00
▷ Maximum method complexity155.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes31
▷ Abstract classes516.13%
▷ Concrete classes2683.87%
▷ Final classes00.00%
Methods344
▷ Static methods3811.05%
▷ Public methods13438.95%
▷ Protected methods15444.77%
▷ Private methods5616.28%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants115
▷ Global constants9885.22%
▷ Class constants1714.78%
▷ Public constants17100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected