84% save-to-foursquare-shortcode

Code Review | Save to foursquare Shortcode

WordPress plugin Save to foursquare Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: save-to-foursquar...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.6
  • WordPress version: 6.3.1
  • First release: May 5, 2013
  • Latest release: May 6, 2013
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: devinreams (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /769 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.00MB] [CPU: ▼4.08ms] Passed 4 tests

An overview of server-side resources used by Save to foursquare Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.56 ▼3.50
Dashboard /wp-admin3.31 ▲0.0151.77 ▼0.36
Posts /wp-admin/edit.php3.36 ▲0.0054.15 ▲1.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.66 ▼13.65
Media Library /wp-admin/upload.php3.23 ▲0.0039.91 ▲6.44

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Save to foursquare Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.54 ▼1.131.72 ▼0.3840.61 ▼5.15
Dashboard /wp-admin2,206 ▲154.86 ▼0.96105.98 ▲1.5137.71 ▼3.61
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0239.60 ▲5.6034.23 ▼3.26
Add New Post /wp-admin/post-new.php1,542 ▲2818.09 ▲0.43628.76 ▼43.8151.37 ▼4.20
Media Library /wp-admin/upload.php1,388 ▼04.32 ▲0.1497.57 ▼5.3144.77 ▼1.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/save-to-foursquare-shortcode/save-to-foursquare-shortcode.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

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
2 plugin tags: foursquare, shortcode

save-to-foursquare-shortcode/save-to-foursquare-shortcode.php Passed 13 tests

The primary PHP file in "Save to foursquare Shortcode" version 1.0 is used by WordPress to initiate all plugin functionality
78 characters long description:
Add the "Save to foursquare" button to posts with a simple WordPress Shortcode

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 detected25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151525

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin