10% references

Code Review | References

WordPress plugin References scored10%from 54 tests.

About plugin

  • Plugin page: references
  • Plugin version: 1.201
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jun 22, 2016
  • Latest release: Sep 26, 2020
  • Number of updates: 43
  • Update frequency: every 36.2 days
  • Top authors: shra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,175 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/references/references.php+576
    syntax error, unexpected 'public' (T_PUBLIC)

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

Server-side resources used by References
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.90 ▲1.40
Dashboard /wp-admin3.31 ▲0.0047.45 ▼5.70
Posts /wp-admin/edit.php3.36 ▲0.0050.53 ▼3.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.92 ▼7.19
Media Library /wp-admin/upload.php3.23 ▲0.0037.99 ▲3.68

Server storage [IO: ▲0.98MB] [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: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by References
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▼0.012.26 ▲0.2845.58 ▲0.73
Dashboard /wp-admin2,198 ▲185.64 ▲0.0190.44 ▲1.9440.40 ▼3.46
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0340.16 ▲0.7935.62 ▲0.10
Add New Post /wp-admin/post-new.php1,545 ▲1923.25 ▲5.71654.48 ▼1.4253.58 ▲3.71
Media Library /wp-admin/upload.php1,400 ▼34.32 ▲0.09100.54 ▼0.8244.87 ▲1.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected 'public' (T_PUBLIC) in wp-content/plugins/references/references.php on line 576

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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Install References plugin.), #2 (The References settings page.), #3 (Build article connections.), #4 (Configure widget(s).), #5 (Created widget view.), #6 (Using REF shortcode in post editor.), #7 (REF shortcode rendered on frontend.)
The official readme.txt might help

references/references.php Passed 13 tests

This is the main PHP file of "References" version 1.201, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
Enables post references (for any type of publications) to connect articles to each other.

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
Success! There were no dangerous files found in this plugin537 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1109140529
JavaScript2017
CSS1111

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity32.67
▷ Minimum class complexity13.00
▷ Maximum class complexity44.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods940.91%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.91MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/chosen-sprite@2x.png0.72KB0.83KB0.00%
screenshot-7.png104.20KB39.63KB▼ 61.97%
admin/chosen-sprite.png0.53KB0.88KB0.00%
screenshot-5.png152.07KB66.66KB▼ 56.16%
screenshot-1.png109.97KB44.65KB▼ 59.39%