89% publicize-with-hashtags

Code Review | Publicize With Hashtags

WordPress plugin Publicize With Hashtags scored89%from 54 tests.

About plugin

  • Plugin page: publicize-with-ha...
  • Plugin version: 0.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Aug 11, 2015
  • Latest release: Aug 22, 2015
  • Number of updates: 16
  • Update frequency: every 0.7 days
  • Top authors: Neilgaiman (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /8,136 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.00MB] [CPU: ▼5.15ms] Passed 4 tests

This is a short check of server-side resources used by Publicize With Hashtags
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.30 ▼8.90
Dashboard /wp-admin3.31 ▲0.0048.02 ▲2.50
Posts /wp-admin/edit.php3.36 ▲0.0050.24 ▲0.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.20 ▼13.25
Media Library /wp-admin/upload.php3.23 ▲0.0034.16 ▲0.67

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Publicize With Hashtags
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.485.33 ▲3.3242.13 ▼2.54
Dashboard /wp-admin2,206 ▲214.86 ▼0.02107.79 ▲2.7642.53 ▼3.48
Posts /wp-admin/edit.php2,092 ▲31.97 ▼0.0340.50 ▲0.6635.85 ▼1.15
Add New Post /wp-admin/post-new.php1,534 ▼823.20 ▲4.92680.26 ▲47.0246.62 ▼5.89
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0498.98 ▲2.0643.51 ▼2.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === publicize-with-hashtags === )
The official readme.txt might help

publicize-with-hashtags/publicize-with-hashtags.php 92% from 13 tests

The main file in "Publicize With Hashtags" v. 0.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 191 characters long)

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
No dangerous file extensions were detected92 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown135053
PHP1115139

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.87
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

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