79% gopherduct

Code Review | Gopherduct

WordPress plugin Gopherduct scored79%from 54 tests.

About plugin

  • Plugin page: gopherduct
  • Plugin version: 0.9.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.5
  • WordPress version: 6.3.1
  • First release: Aug 25, 2020
  • Latest release: Aug 25, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: invisnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /294 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.72ms] Passed 4 tests

A check of server-side resources used by Gopherduct
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.94 ▼1.80
Dashboard /wp-admin3.37 ▲0.0742.77 ▼13.84
Posts /wp-admin/edit.php3.48 ▲0.1350.68 ▲1.63
Add New Post /wp-admin/post-new.php5.95 ▲0.0680.79 ▼8.53
Media Library /wp-admin/upload.php3.29 ▲0.0632.59 ▼2.71

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Gopherduct
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▲0.011.70 ▼2.9542.72 ▼4.35
Dashboard /wp-admin2,200 ▲125.81 ▲0.92101.39 ▼14.4641.23 ▼1.19
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0038.95 ▲3.9339.42 ▲5.25
Add New Post /wp-admin/post-new.php1,514 ▼017.36 ▼0.10656.99 ▼51.2170.99 ▲13.62
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.2096.07 ▼4.7841.97 ▼1.19

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
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/gopherduct/vendor/michelf/php-markdown/Readme.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/gopherduct/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function invisnet\\Gopherduct\\register_activation_hook() in wp-content/plugins/gopherduct/gopherduct.php:57
    • > PHP Fatal error
      Uncaught Error: Interface 'Michelf\\MarkdownInterface' not found in wp-content/plugins/gopherduct/vendor/michelf/php-markdown/Michelf/Markdown.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

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
1 plugin tags: gopher

gopherduct/gopherduct.php Passed 13 tests

The main PHP file in "Gopherduct" ver. 0.9.0 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
A WordPress to Gopherspace bridge.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3,155 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP175441,6112,657
Markdown21380335
JSON20082
YAML26257
XML11023
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity35.12
▷ Minimum class complexity1.00
▷ Maximum class complexity121.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces3
Interfaces1
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods131
▷ Static methods53.82%
▷ Public methods3325.19%
▷ Protected methods9774.05%
▷ Private methods10.76%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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