83% theme-to-browser-control-ie-pack

Code Review | Theme to Browser Control - IE Pack

WordPress plugin Theme to Browser Control - IE Pack scored 83% from 54 tests.

About plugin

  • Plugin page: theme-to-browser-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.0
  • WordPress version: 6.3.1
  • First release: Sep 25, 2014
  • Latest release: Sep 25, 2014
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: federico_jacobi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 994 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.77ms] Passed 4 tests

This is a short check of server-side resources used by Theme to Browser Control - IE Pack
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0151.49 ▲9.23
Dashboard /wp-admin3.32 ▲0.0154.32 ▲0.11
Posts /wp-admin/edit.php3.37 ▲0.0148.51 ▼5.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.61 ▼1.89
Media Library /wp-admin/upload.php3.24 ▲0.0139.62 ▲4.45

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Theme to Browser Control - IE Pack
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲2513.28 ▼1.074.75 ▲2.8945.02 ▲3.20
Dashboard /wp-admin2,209 ▼05.85 ▲0.98100.87 ▼7.5939.63 ▼6.00
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0034.17 ▼6.5037.24 ▲0.54
Add New Post /wp-admin/post-new.php1,534 ▲1523.10 ▼0.11612.43 ▼91.5952.42 ▼14.76
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0493.20 ▼7.5643.06 ▼0.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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 no errors were found, this is by no means an exhaustive test

SRP 50% 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-to-browser-control-ie-pack/t2b-ie-pack.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


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
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Easy selection based on browser)
The official readme.txt might help

theme-to-browser-control-ie-pack/t2b-ie-pack.php 85% from 13 tests

Analyzing the main PHP file in "Theme to Browser Control - IE Pack" version 1.0
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("theme-to-browser-control-ie-pack.php" instead of "t2b-ie-pack.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 194 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin45 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ie11.png4.13KB1.44KB▼ 65.22%