78% third-light-browser

Code Review | Third Light Browser

WordPress plugin Third Light Browser scored78%from 54 tests.

About plugin

  • Plugin page: third-light-browser
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 30, 2014
  • Latest release: Apr 19, 2018
  • Number of updates: 10
  • Update frequency: every 145.0 days
  • Top authors: thirdlight (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,474 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼3.47ms] Passed 4 tests

Analyzing server-side resources used by Third Light Browser
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1243.16 ▲5.02
Dashboard /wp-admin3.45 ▲0.1452.38 ▼0.61
Posts /wp-admin/edit.php3.56 ▲0.2048.13 ▼0.87
Add New Post /wp-admin/post-new.php6.03 ▲0.1489.78 ▼13.12
Media Library /wp-admin/upload.php3.37 ▲0.1436.80 ▲0.73
Third Light Browser /wp-admin/options-general.php?page=third-light-browser-settings3.3230.85

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Third Light Browser
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.122.03 ▲0.4642.37 ▲1.17
Dashboard /wp-admin2,199 ▲225.59 ▼0.1195.62 ▲5.2344.26 ▲0.38
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0137.53 ▼0.1834.42 ▼3.80
Add New Post /wp-admin/post-new.php1,539 ▲1323.17 ▼0.18695.16 ▲52.0659.74 ▲0.68
Media Library /wp-admin/upload.php1,407 ▲74.12 ▼0.09105.33 ▲0.1851.66 ▼0.18
Third Light Browser /wp-admin/options-general.php?page=third-light-browser-settings1,1111.8433.8733.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=third-light-browser-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=third-light-browser-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/third-light-browser/thirdlightbrowser.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === third-light-browser === )
The official readme.txt might help

third-light-browser/thirdlightbrowser.php 92% from 13 tests

"Third Light Browser" version 0.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("third-light-browser.php" instead of "thirdlightbrowser.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,011 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4150100817
JavaScript23147194

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity12.67
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity4.82
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods19
▷ Static methods315.79%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
Functions13
▷ Named functions215.38%
▷ Anonymous functions1184.62%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
media/logo.png0.68KB0.74KB0.00%
media/logo_disabled.png0.76KB0.68KB▼ 10.03%