89% ffb-delete-wpml-language-content

Code Review | Delete WPML Language Content by FreshFunBits

WordPress plugin Delete WPML Language Content by FreshFunBits scored89%from 54 tests.

About plugin

  • Plugin page: ffb-delete-wpml-l...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 6.3.1
  • First release: Nov 29, 2016
  • Latest release: Dec 30, 2016
  • Number of updates: 12
  • Update frequency: every 16.6 days
  • Top authors: freshfunbits (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /859 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.04ms] Passed 4 tests

This is a short check of server-side resources used by Delete WPML Language Content by FreshFunBits
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.76 ▼7.42
Dashboard /wp-admin3.34 ▲0.0454.15 ▲3.13
Posts /wp-admin/edit.php3.39 ▲0.0448.12 ▼3.47
Add New Post /wp-admin/post-new.php5.92 ▲0.04101.42 ▲15.56
Media Library /wp-admin/upload.php3.26 ▲0.0433.94 ▼4.38
Delete WPML Language Content /wp-admin/tools.php?page=ffb-delete-wpml-language-content3.2333.64

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Delete WPML Language Content by FreshFunBits
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.27 ▼1.094.83 ▲2.9944.07 ▼5.92
Dashboard /wp-admin2,207 ▲195.85 ▲0.81112.40 ▼0.9141.74 ▲3.13
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0233.99 ▼5.8934.98 ▼2.21
Add New Post /wp-admin/post-new.php1,550 ▲618.18 ▼0.20611.74 ▼22.7765.31 ▲9.04
Media Library /wp-admin/upload.php1,386 ▼24.18 ▲0.0796.54 ▼13.7940.96 ▼1.92
Delete WPML Language Content /wp-admin/tools.php?page=ffb-delete-wpml-language-content7582.0629.3627.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (The plugin screen in action!)
The official readme.txt is a good inspiration

ffb-delete-wpml-language-content/main.php 85% from 13 tests

"Delete WPML Language Content by FreshFunBits" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ffb-delete-wpml-language-content.php" instead of "main.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin276 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27891212
Markdown122034
JavaScript113530

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.00
▷ Minimum class complexity5.00
▷ Maximum class complexity13.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png28.96KB30.00KB0.00%