52% jirnee

Code Review | jirnee-Share

WordPress plugin jirnee-Share scored52%from 54 tests.

About plugin

  • Plugin page: jirnee
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Feb 19, 2013
  • Latest release: Feb 25, 2013
  • Number of updates: 38
  • Update frequency: every 0.2 days
  • Top authors: dhakalster (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /4,667 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.93MB] [CPU: ▼32.21ms] Passed 4 tests

Server-side resources used by jirnee-Share
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0231.65 ▼8.68
Dashboard /wp-admin3.02 ▼0.2928.58 ▼21.15
Posts /wp-admin/edit.php3.02 ▼0.3426.71 ▼16.83
Add New Post /wp-admin/post-new.php3.02 ▼2.8724.44 ▼78.54
Media Library /wp-admin/upload.php3.02 ▼0.2120.03 ▼12.32
jirnee-Settings /wp-admin/options-general.php?page=idg_admin3.0222.18

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

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

Browser metrics Passed 4 tests

A check of browser resources used by jirnee-Share
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼1.431.58 ▼0.2336.70 ▼5.76
Dashboard /wp-admin2,210 ▲254.83 ▼0.19120.17 ▼0.6347.04 ▲3.76
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0139.27 ▲2.9735.77 ▲1.03
Add New Post /wp-admin/post-new.php1,517 ▼1617.65 ▼5.56608.26 ▼14.9648.65 ▼10.89
Media Library /wp-admin/upload.php1,395 ▲74.24 ▲0.01105.73 ▲3.3143.22 ▲0.64
jirnee-Settings /wp-admin/options-general.php?page=idg_admin8752.0627.1428.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie tables were found after uninstall: 1 table
    • wp_idg_jirnee
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=idg_admin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/jirnee/idg_admin.php:34
    • > PHP Warning
      Use of undefined constant IDIDGO_PLUGIN_TABLE_PREFIX - assumed 'IDIDGO_PLUGIN_TABLE_PREFIX' (this will throw an Error in a future version of PHP) in wp-content/plugins/jirnee/idg_admin.php on line 33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jirnee/jirneeshare.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=idg_admin
    • > Network (severe)
    https://www.jirnee.com/images/plgScreen.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
    • > GET request to /wp-admin/options-general.php?page=idg_admin
    • > Network (severe)
    https://www.jirnee.com/images/plgTags.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
    • > GET request to /wp-admin/options-general.php?page=idg_admin
    • > Network (severe)
    https://www.jirnee.com/images/plgFb.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === jirnee === )
You can look at the official readme.txt

jirnee/jirneeshare.php 92% from 13 tests

This is the main PHP file of "jirnee-Share" version 1.0.0, 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 ("jirnee.php" instead of "jirneeshare.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 detected180 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22849180

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png40.04KB17.19KB▼ 57.06%