10% jingle-contextual

Code Review | Jingle Contextual

WordPress plugin Jingle Contextual scored 10% from 54 tests.

About plugin

  • Plugin page: jingle-contextual
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 13, 2014
  • Latest release: Mar 19, 2016
  • Number of updates: 24
  • Update frequency: every 21.8 days
  • Top authors: puthre (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 1,143 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/jingle-contextual/2Performant-php/PEAR/PEAR.php+102
    Methods with the same name as their class will not be constructors in a future version of PHP; PEAR has a deprecated constructor

Server metrics [RAM: ▼1.75MB] [CPU: ▼52.29ms] Passed 4 tests

Analyzing server-side resources used by Jingle Contextual
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼1.235.42 ▼34.41
Dashboard /wp-admin2.25 ▼1.056.37 ▼47.10
Posts /wp-admin/edit.php2.26 ▼1.105.54 ▼40.25
Add New Post /wp-admin/post-new.php2.25 ▼3.636.12 ▼87.40
Media Library /wp-admin/upload.php2.25 ▼0.977.01 ▼25.61
Jingle Contextual /wp-admin/options-general.php?page=jingle-contextual2.265.40

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Jingle Contextual
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10913.74 ▼0.611.92 ▲0.4140.12 ▲2.73
Dashboard /wp-admin2,228 ▲405.95 ▲0.06104.98 ▲1.4540.54 ▲1.33
Posts /wp-admin/edit.php2,110 ▲212.26 ▲0.2834.84 ▼1.2831.05 ▼2.62
Add New Post /wp-admin/post-new.php1,528 ▼523.37 ▲0.20634.53 ▼81.1034.14 ▼30.37
Media Library /wp-admin/upload.php1,401 ▲164.36 ▲0.16100.37 ▼0.4643.16 ▼0.68
Jingle Contextual /wp-admin/options-general.php?page=jingle-contextual9152.3741.3426.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/jingle-contextual/2Performant-php/PEAR/PEAR.php+102
    Methods with the same name as their class will not be constructors in a future version of PHP; PEAR has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_jingle_widget
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=jingle-contextual
    • > Deprecated in wp-content/plugins/jingle-contextual/2Performant-php/PEAR/PEAR.php+102
    Methods with the same name as their class will not be constructors in a future version of PHP; PEAR has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=jingle-contextual
    • > Deprecated in wp-content/plugins/jingle-contextual/2Performant-php/PEAR/PEAR.php+826
    Methods with the same name as their class will not be constructors in a future version of PHP; PEAR_Error has a deprecated constructor

SRP 0% 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 items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/jingle-contextual/jinglecontextual.php
  • 59× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'HTTP/OAuth/Message.php' (include_path='.:/usr/share/php') in wp-content/plugins/jingle-contextual/2Performant-php/PEAR/HTTP/OAuth/Provider/Request.php on line 22
    • > PHP Warning
      require_once(HTTP/OAuth/Message.php): failed to open stream: No such file or directory in wp-content/plugins/jingle-contextual/2Performant-php/PEAR/HTTP/OAuth/Consumer/Response.php on line 24
    • > PHP Warning
      require_once(HTTP/OAuth.php): failed to open stream: No such file or directory in wp-content/plugins/jingle-contextual/2Performant-php/PEAR/HTTP/OAuth/Signature/Common.php on line 24
    • > PHP Warning
      require_once(HTTP/Request2.php): failed to open stream: No such file or directory in wp-content/plugins/jingle-contextual/2Performant-php/PEAR/HTTP/OAuth/Consumer/Request.php on line 24
    • > PHP Fatal error
      require_once(): Failed opening required 'HTTP/OAuth/Signature/Common.php' (include_path='.:/usr/share/php') in wp-content/plugins/jingle-contextual/2Performant-php/PEAR/HTTP/OAuth/Signature/PLAINTEXT.php on line 24
    • > PHP Fatal error
      require_once(): Failed opening required 'HTTP/OAuth/Message.php' (include_path='.:/usr/share/php') in wp-content/plugins/jingle-contextual/2Performant-php/PEAR/HTTP/OAuth/Provider/Response.php on line 22
    • > PHP Warning
      require_once(HTTP/OAuth/Store/Data.php): failed to open stream: No such file or directory in wp-content/plugins/jingle-contextual/2Performant-php/PEAR/HTTP/OAuth/Store/Consumer/CacheLite.php on line 16
    • > PHP Fatal error
      require_once(): Failed opening required 'HTTP/OAuth/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/jingle-contextual/2Performant-php/PEAR/HTTP/OAuth/Provider/Exception.php on line 24
    • > PHP Warning
      require_once(HTTP/OAuth/Provider/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/jingle-contextual/2Performant-php/PEAR/HTTP/OAuth/Provider/Exception/InvalidRequest.php on line 22
    • > PHP Warning
      require_once(HTTP/Request2/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/jingle-contextual/2Performant-php/PEAR/HTTP/Request2/SocketWrapper.php on line 45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Panoul de administrare Jingle Contextual), #2 (Exemplu de afisare contextuala - widget vertical)
Please take inspiration from this readme.txt

jingle-contextual/jinglecontextual.php 85% from 13 tests

The entry point to "Jingle Contextual" version 1.9 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 269 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("jingle-contextual.php" instead of "jinglecontextual.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin6,024 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP411,1365,2356,024

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity21.41
▷ Minimum class complexity1.00
▷ Maximum class complexity177.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes45
▷ Abstract classes511.11%
▷ Concrete classes4088.89%
▷ Final classes00.00%
Methods423
▷ Static methods245.67%
▷ Public methods37087.47%
▷ Protected methods5011.82%
▷ Private methods30.71%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants62
▷ Global constants1524.19%
▷ Class constants4775.81%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.32MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png23.45KB11.18KB▼ 52.31%
screenshot-2.png307.08KB108.10KB▼ 64.80%