84% theme-info-in-toolbar

Code Review | Theme Info in Toolbar

WordPress plugin Theme Info in Toolbar scored84%from 54 tests.

About plugin

  • Plugin page: theme-info-in-too...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 22, 2016
  • Latest release: Nov 22, 2016
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: JeremyEnglert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,947 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Theme Info in Toolbar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0137.66 ▼8.15
Dashboard /wp-admin3.57 ▼0.0650.86 ▼14.70
Posts /wp-admin/edit.php3.68 ▲0.0150.11 ▼4.93
Add New Post /wp-admin/post-new.php6.15 ▲0.0194.81 ▼5.65
Media Library /wp-admin/upload.php3.49 ▲0.0041.48 ▲5.61

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Theme Info in Toolbar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.30 ▼0.352.24 ▲0.5939.07 ▼5.83
Dashboard /wp-admin2,207 ▲305.63 ▼0.0692.63 ▼5.8040.96 ▲1.07
Posts /wp-admin/edit.php2,112 ▲92.03 ▲0.0141.61 ▲0.4134.66 ▲1.24
Add New Post /wp-admin/post-new.php1,561 ▲1523.34 ▲0.09609.92 ▼59.2251.96 ▲6.06
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0097.95 ▼8.5343.05 ▼8.69

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-info-in-toolbar/theme-info-toolbar.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: admin, developer, administration, toolbar

theme-info-in-toolbar/theme-info-toolbar.php 92% from 13 tests

The entry point to "Theme Info in Toolbar" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("theme-info-in-toolbar.php" instead of "theme-info-toolbar.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
No dangerous file extensions were detected13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16913

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin