84% toolbar-quick-view

Code Review | Toolbar Quick View

WordPress plugin Toolbar Quick View scored84%from 54 tests.

About plugin

  • Plugin page: toolbar-quick-view
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.3
  • WordPress version: 6.3.1
  • First release: Jan 23, 2012
  • Latest release: Jan 23, 2012
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: krogsgard (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,402 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.01MB] [CPU: ▼3.05ms] Passed 4 tests

This is a short check of server-side resources used by Toolbar Quick View
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.18 ▼1.35
Dashboard /wp-admin3.31 ▲0.0146.88 ▼2.27
Posts /wp-admin/edit.php3.37 ▲0.0145.71 ▼4.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.28 ▼4.08
Media Library /wp-admin/upload.php3.24 ▲0.0134.32 ▼1.01

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Toolbar Quick View
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲10313.15 ▼1.201.80 ▼0.0544.71 ▲5.77
Dashboard /wp-admin2,235 ▲534.88 ▲0.0296.91 ▼7.8739.35 ▼2.96
Posts /wp-admin/edit.php2,115 ▲232.12 ▲0.1234.37 ▼7.7133.48 ▼1.24
Add New Post /wp-admin/post-new.php1,558 ▲1623.15 ▲5.10698.69 ▲82.0660.33 ▲4.35
Media Library /wp-admin/upload.php1,411 ▲234.19 ▼0.0099.45 ▼19.9247.27 ▼0.13

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
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/toolbar-quick-view/toolbar-quick-view.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: toolbar view quick links, toolbar, toolbar menu, toolbar view, admin bar menu...

toolbar-quick-view/toolbar-quick-view.php 92% from 13 tests

This is the main PHP file of "Toolbar Quick View" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 197 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin46 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1182446

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.67
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin