84% google-url-buildertwitter

Code Review | Google URL Builder::Twitter

WordPress plugin Google URL Builder::Twitter scored84%from 54 tests.

About plugin

  • Plugin page: google-url-builde...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Dec 1, 2012
  • Latest release: Dec 1, 2012
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: danielrosca (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /817 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
Install script ran successfully

Server metrics [RAM: ▼0.32MB] [CPU: ▼19.89ms] Passed 4 tests

Analyzing server-side resources used by Google URL Builder::Twitter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0242.23 ▼1.23
Dashboard /wp-admin3.32 ▼0.0244.58 ▼18.96
Posts /wp-admin/edit.php3.37 ▲0.0249.62 ▼4.49
Add New Post /wp-admin/post-new.php4.62 ▼1.2745.08 ▼54.89
Media Library /wp-admin/upload.php3.25 ▲0.0234.17 ▲1.53

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Google URL Builder::Twitter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.17 ▼1.211.90 ▼0.2043.11 ▲0.28
Dashboard /wp-admin2,206 ▲154.85 ▼0.18107.04 ▲3.2340.84 ▼3.46
Posts /wp-admin/edit.php2,086 ▼62.00 ▼0.0035.20 ▼5.8232.21 ▼6.37
Add New Post /wp-admin/post-new.php6,220 ▲4,70119.04 ▼4.14952.52 ▲341.8675.12 ▲26.83
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0295.86 ▼12.2140.84 ▼2.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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 no errors were found, this is by no means 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 take a closer look at the following
  • 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/google-url-buildertwitter/url_twitter.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (http://bit.ly/X9zox0), #2 (http://bit.ly/SlhKla), #3 (http://bit.ly/QvWOtv)
You can take inspiration from this readme.txt

google-url-buildertwitter/url_twitter.php 92% from 13 tests

"Google URL Builder::Twitter" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("google-url-buildertwitter.php" instead of "url_twitter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected74 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1314074

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin