89% unfluff-io-content-optimization

Code Review | Unfluff.io - Content Optimization

WordPress plugin Unfluff.io - Content Optimization scored89%from 54 tests.

About plugin

  • Plugin page: unfluff-io-conten...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 10, 2022
  • Latest release: Aug 12, 2022
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: unfluff (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,474 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Unfluff.io - Content Optimization
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.17 ▲0.01
Dashboard /wp-admin3.35 ▲0.0448.25 ▼2.67
Posts /wp-admin/edit.php3.40 ▲0.0449.31 ▼6.76
Add New Post /wp-admin/post-new.php5.96 ▲0.0887.19 ▼11.13
Media Library /wp-admin/upload.php3.27 ▲0.0437.17 ▲2.01

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Unfluff.io - Content Optimization
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲5513.65 ▼0.731.73 ▼0.2741.96 ▲1.34
Dashboard /wp-admin2,235 ▲475.79 ▼0.12105.33 ▲1.3778.67 ▲36.51
Posts /wp-admin/edit.php2,118 ▲291.97 ▼0.0937.87 ▼0.6136.16 ▲0.73
Add New Post /wp-admin/post-new.php6,307 ▲4,78826.02 ▲2.721,027.30 ▲407.5252.83 ▼6.27
Media Library /wp-admin/upload.php1,414 ▲294.25 ▲0.04102.88 ▼0.3189.73 ▲46.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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 Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed: The official readme.txt is a good inspiration

unfluff-io-content-optimization/unfluff.php 92% from 13 tests

The entry point to "Unfluff.io - Content Optimization" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("unfluff-io-content-optimization.php" instead of "unfluff.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin823 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24357404
PHP12618232
CSS244150
SVG11037

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
5 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/85.png26.96KB10.51KB▼ 61.02%
assets/images/waiting.png36.18KB13.81KB▼ 61.84%
assets/images/50.png40.11KB15.32KB▼ 61.80%
assets/images/65.png34.78KB13.29KB▼ 61.77%
assets/images/100.png31.00KB10.58KB▼ 65.87%