10% the-j-a-mortram-share-this-story

Code Review | The J A Mortram Share This Story

WordPress plugin The J A Mortram Share This Story scored10%from 54 tests.

About plugin

  • Plugin page: the-j-a-mortram-s...
  • Plugin version: 1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Aug 3, 2013
  • Latest release: Nov 15, 2017
  • Number of updates: 11
  • Update frequency: every 142.5 days
  • Top authors: bigflannel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,461 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/the-j-a-mortram-share-this-story/jamortram-share.php+26
    Methods with the same name as their class will not be constructors in a future version of PHP; JAMortramShareThisStory has a deprecated constructor

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.94ms] Passed 4 tests

A check of server-side resources used by The J A Mortram Share This Story
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.92 ▼5.96
Dashboard /wp-admin3.31 ▲0.0150.39 ▼1.64
Posts /wp-admin/edit.php3.36 ▲0.0050.91 ▼3.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.51 ▼0.72
Media Library /wp-admin/upload.php3.23 ▲0.0037.71 ▼1.05

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

The J A Mortram Share This Story: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.21 ▲0.011.93 ▲0.0143.19 ▲1.28
Dashboard /wp-admin2,195 ▲155.66 ▲0.0293.68 ▲6.3241.41 ▲1.52
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0140.87 ▼0.6636.26 ▼4.87
Add New Post /wp-admin/post-new.php1,547 ▲2123.33 ▲5.73629.01 ▼67.8150.16 ▲0.75
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.00101.60 ▼0.3247.96 ▲5.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-j-a-mortram-share-this-story/jamortram-share.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: sharing, social media, the j a mortram

the-j-a-mortram-share-this-story/jamortram-share.php 85% from 13 tests

This is the main PHP file of "The J A Mortram Share This Story" version 1.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("the-j-a-mortram-share-this-story.php" instead of "jamortram-share.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 339 characters long)

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
No dangerous file extensions were detected52 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP161932
CSS10020

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/facebook.png1.98KB0.42KB▼ 78.92%
img/twitter.png3.28KB1.04KB▼ 68.25%
img/gplus.png3.66KB1.47KB▼ 59.66%