84% exchange-toolbar

Code Review | Exchange Toolbar

WordPress plugin Exchange Toolbar scored84%from 54 tests.

About plugin

  • Plugin page: exchange-toolbar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2015
  • Latest release: Mar 8, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: NikV (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /727 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.94ms] Passed 4 tests

An overview of server-side resources used by Exchange Toolbar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.98 ▼1.81
Dashboard /wp-admin3.32 ▲0.0247.41 ▼1.22
Posts /wp-admin/edit.php3.37 ▲0.0248.96 ▲2.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.97 ▼7.07
Media Library /wp-admin/upload.php3.24 ▲0.0135.87 ▲5.87

Server storage [IO: ▲0.00MB] [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_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Exchange Toolbar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.441.77 ▼0.0443.47 ▼5.28
Dashboard /wp-admin2,206 ▲154.86 ▼1.02108.83 ▲2.5340.38 ▼5.68
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0340.40 ▲4.7234.65 ▼1.77
Add New Post /wp-admin/post-new.php1,514 ▼517.65 ▼5.49637.86 ▼46.5347.01 ▼12.24
Media Library /wp-admin/upload.php1,388 ▼34.23 ▼0.0196.84 ▼10.1041.74 ▼1.29

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/exchange-toolbar/exchange-toolbar.php:114

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: keyboard, shortcuts, bbpress

exchange-toolbar/exchange-toolbar.php Passed 13 tests

This is the main PHP file of "Exchange Toolbar" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
74 characters long description:
A simple toolbar plugin for the Exchange eCommerce plugin built by iThemes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin76 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1172473
Markdown1203

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods3100.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 are no PNG files in this plugin