83% reftagger-shortcode

Code Review | Reftagger Shortcode

WordPress plugin Reftagger Shortcode scored83%from 54 tests.

About plugin

  • Plugin page: reftagger-shortcode
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-4.3.1
  • WordPress version: 6.3.1
  • First release: May 19, 2014
  • Latest release: Sep 15, 2015
  • Number of updates: 9
  • Update frequency: every 53.9 days
  • Top authors: kcharity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,770 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.48ms] Passed 4 tests

An overview of server-side resources used by Reftagger Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.03 ▼10.48
Dashboard /wp-admin3.32 ▲0.0145.41 ▼1.38
Posts /wp-admin/edit.php3.37 ▲0.0145.93 ▲0.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.54 ▲1.19
Media Library /wp-admin/upload.php3.24 ▲0.0136.41 ▲4.41

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Reftagger Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.25 ▼1.131.88 ▲0.0443.93 ▼2.30
Dashboard /wp-admin2,214 ▲235.80 ▼0.06100.52 ▼4.5441.86 ▼1.19
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0439.88 ▲2.8436.30 ▼0.47
Add New Post /wp-admin/post-new.php1,522 ▼1617.48 ▼5.73666.10 ▼3.8254.71 ▲0.10
Media Library /wp-admin/upload.php1,399 ▲144.25 ▼0.0695.70 ▼8.0743.97 ▼2.85

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 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/reftagger-shortcode/reftagger-shortcode.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid url: ""
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

reftagger-shortcode/reftagger-shortcode.php 92% from 13 tests

The main PHP file in "Reftagger Shortcode" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected67 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP192150
JavaScript11117

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions7
▷ Named functions7100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/js/img/reftagger.png1.06KB0.17KB▼ 84.42%
includes/js/img/logos.png1.23KB1.26KB0.00%