84% show-your-support-for-a-wordcamp

Code Review | Show your Support

WordPress plugin Show your Support scored 84% from 54 tests.

About plugin

  • Plugin page: show-your-support...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Oct 1, 2016
  • Latest release: Feb 4, 2017
  • Number of updates: 11
  • Update frequency: every 11.7 days
  • Top authors: bornforphp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 609 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Show your Support
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.69 ▼10.95
Dashboard /wp-admin3.38 ▲0.0747.83 ▼3.33
Posts /wp-admin/edit.php3.43 ▲0.0750.26 ▲0.96
Add New Post /wp-admin/post-new.php5.96 ▲0.0797.06 ▼1.75
Media Library /wp-admin/upload.php3.30 ▲0.0735.52 ▼1.03

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 81 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Show your Support
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.20 ▼1.381.71 ▼0.4744.85 ▼3.09
Dashboard /wp-admin2,224 ▲365.85 ▼0.05105.82 ▼3.8841.63 ▲0.20
Posts /wp-admin/edit.php2,107 ▲182.06 ▲0.0740.07 ▲4.4340.45 ▲7.61
Add New Post /wp-admin/post-new.php1,529 ▲117.60 ▼0.56640.82 ▲25.9557.61 ▲5.68
Media Library /wp-admin/upload.php1,406 ▲154.26 ▼0.00101.44 ▼0.0844.17 ▼1.56

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 42× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/Exceptions/FacebookOtherException.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\Collection' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/GraphNodes/GraphNode.php:31
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\Http\\RequestBodyInterface' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/Http/RequestBodyMultipart.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/GraphNodes/GraphSessionInfo.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/Exceptions/FacebookClientException.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\Helpers\\FacebookCanvasHelper' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/Helpers/FacebookPageTabHelper.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/show-your-support-for-a-wordcamp/social_media.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphEdge' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/GraphNodes/GraphList.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/GraphNodes/GraphObject.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/show-your-support-for-a-wordcamp/services/Facebook/Exceptions/FacebookServerException.php:31

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
10 plugin tags: facebook, twitter, sys, badge, show your support...

show-your-support-for-a-wordcamp/index.php 92% from 13 tests

The main PHP script in "Show your Support" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("show-your-support-for-a-wordcamp.php" instead of "index.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 detected6,495 lines of code in 74 files:
LanguageFilesBlank linesComment linesLines of code
PHP711,2565,5625,792
CSS311193703

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.64
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces11
Interfaces5
Traits1
Classes74
▷ Abstract classes34.05%
▷ Concrete classes7195.95%
▷ Final classes00.00%
Methods570
▷ Static methods223.86%
▷ Public methods52491.93%
▷ Protected methods274.74%
▷ Private methods193.33%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants28
▷ Global constants517.86%
▷ Class constants2382.14%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/template320.png0.52KB0.12KB▼ 77.57%
images/template200.png0.51KB0.11KB▼ 78.52%
images/overlay.png47.81KB11.99KB▼ 74.93%
images/make_profile_pic.png12.72KB6.35KB▼ 50.11%
images/template480.png1.01KB0.13KB▼ 86.80%