10% traverse-digital

Code Review | Traverse Digital

WordPress plugin Traverse Digital scored10%from 54 tests.

About plugin

  • Plugin page: traverse-digital
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.4
  • WordPress version: 6.3.1
  • First release: Oct 29, 2015
  • Latest release: Nov 19, 2015
  • Number of updates: 5
  • Update frequency: every 4.2 days
  • Top authors: jackreichert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /687 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/traverse-digital/inc/plugin-settings.php+29
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▼1.88MB] [CPU: ▼54.75ms] Passed 4 tests

Analyzing server-side resources used by Traverse Digital
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.345.68 ▼33.76
Dashboard /wp-admin2.15 ▼1.206.66 ▼51.52
Posts /wp-admin/edit.php2.15 ▼1.217.01 ▼42.34
Add New Post /wp-admin/post-new.php2.15 ▼3.747.60 ▼91.39
Media Library /wp-admin/upload.php2.15 ▼1.096.24 ▼24.97
Traverse Digital /wp-admin/options-general.php?page=traverse-digital-settings2.156.32

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Traverse Digital
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.55 ▼0.741.83 ▲0.0637.91 ▼5.99
Dashboard /wp-admin2,219 ▲375.85 ▲0.7395.87 ▼8.5742.82 ▼3.94
Posts /wp-admin/edit.php2,098 ▲62.01 ▼0.0538.04 ▼0.5532.67 ▼3.99
Add New Post /wp-admin/post-new.php1,542 ▲2323.18 ▼0.04644.94 ▼45.5650.91 ▼13.96
Media Library /wp-admin/upload.php1,401 ▲134.20 ▼0.0297.40 ▼17.1740.70 ▼6.23
Traverse Digital /wp-admin/options-general.php?page=traverse-digital-settings8642.1722.6828.91

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/traverse-digital/inc/plugin-settings.php+29
    count(): Parameter must be an array or an object that implements Countable
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=traverse-digital-settings
    • > Warning in wp-content/plugins/traverse-digital/inc/plugin-settings.php+29
    count(): Parameter must be an array or an object that implements Countable
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=traverse-digital-settings
    • > Notice in wp-content/plugins/traverse-digital/inc/plugin-settings.php+155
    Accessing static property TD_Settings::$options as non static
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=traverse-digital-settings
    • > Notice in wp-content/plugins/traverse-digital/inc/plugin-settings.php+155
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/traverse-digital/traverse.digital.php:29

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (This is what you could add to your site. Cool, right?!) image missing
The official readme.txt might help

traverse-digital/traverse.digital.php 85% from 13 tests

This is the main PHP file of "Traverse Digital" 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: The description should be shorter than 140 characters (currently 145 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("traverse-digital.php" instead of "traverse.digital.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin461 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP46896408
JavaScript151248
CSS1005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity16.75
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods2066.67%
▷ Protected methods00.00%
▷ Private methods1033.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin