78% jm-social-media-font-awesome

Code Review | Jm Social Media Font Awesome

WordPress plugin Jm Social Media Font Awesome scored78%from 54 tests.

About plugin

  • Plugin page: jm-social-media-f...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7.5
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Jun 22, 2017
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: jimolina (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) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.53ms] Passed 4 tests

An overview of server-side resources used by Jm Social Media Font Awesome
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.33 ▼0.49
Dashboard /wp-admin3.33 ▲0.0350.01 ▼6.49
Posts /wp-admin/edit.php3.38 ▲0.0248.33 ▼5.98
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.50 ▼14.55
Media Library /wp-admin/upload.php3.25 ▲0.0234.58 ▼3.09
All FA Icons /wp-admin/edit.php?post_type=jm_awesome3.3038.03
Add New /wp-admin/post-new.php?post_type=jm_awesome3.3244.24

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jm Social Media Font Awesome
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.25 ▼0.101.72 ▲0.0642.94 ▼1.28
Dashboard /wp-admin2,216 ▲365.62 ▲0.0289.01 ▼11.0739.08 ▼5.06
Posts /wp-admin/edit.php2,130 ▲331.95 ▼0.0340.96 ▲4.0036.73 ▲0.27
Add New Post /wp-admin/post-new.php1,554 ▲2823.01 ▲0.03627.63 ▼46.1465.74 ▲10.18
Media Library /wp-admin/upload.php1,430 ▲334.31 ▲0.0598.05 ▼1.6444.95 ▲1.16
All FA Icons /wp-admin/edit.php?post_type=jm_awesome1,2052.3441.1550.63
Add New /wp-admin/post-new.php?post_type=jm_awesome6,8047.33244.4881.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=jm_awesome
    • > Notice in wp-content/plugins/jm-social-media-font-awesome/views/form.php+6
    Undefined index: jm_awesome_content
    • > GET request to /wp-admin/post-new.php?post_type=jm_awesome
    • > Notice in wp-content/plugins/jm-social-media-font-awesome/views/form.php+6
    Trying to access array offset on value of type null

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/jm-social-media-font-awesome/views/form.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: social, icons, jmsocialmedia, media, socialmedia...

jm-social-media-font-awesome/jm-social-media-font-awesome.php 92% from 13 tests

"Jm Social Media Font Awesome" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,867 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP35422171
CSS502113
JavaScript501212

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
4 PNG files occupy 0.39MB with 0.29MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png218.88KB62.54KB▼ 71.43%
screenshot-4.png28.21KB7.94KB▼ 71.85%
screenshot-2.png116.87KB31.87KB▼ 72.73%
screenshot-3.png36.36KB8.62KB▼ 76.29%