84% curiyo-links

Code Review | Curiyo Links

WordPress plugin Curiyo Links scored84%from 54 tests.

About plugin

  • Plugin page: curiyo-links
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 6.3.1
  • First release: Oct 27, 2013
  • Latest release: Sep 30, 2014
  • Number of updates: 18
  • Update frequency: every 19.0 days
  • Top authors: Curiyo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,438 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.67ms] Passed 4 tests

This is a short check of server-side resources used by Curiyo Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.94 ▼0.5226.03 ▼15.74
Dashboard /wp-admin3.46 ▲0.1656.72 ▼1.05
Posts /wp-admin/edit.php3.56 ▲0.2061.85 ▲6.86
Add New Post /wp-admin/post-new.php6.06 ▲0.1789.94 ▼6.71
Media Library /wp-admin/upload.php3.39 ▲0.1642.88 ▲4.84

Server storage [IO: ▲0.04MB] [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, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
curiyo_search_page_id

Browser metrics Passed 4 tests

Curiyo Links: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲6414.37 ▲0.051.86 ▼0.6641.66 ▼9.27
Dashboard /wp-admin2,214 ▲345.74 ▲0.0995.05 ▼2.7687.38 ▲45.28
Posts /wp-admin/edit.php2,142 ▲392.30 ▲0.2635.21 ▼1.9438.30 ▼0.01
Add New Post /wp-admin/post-new.php1,712 ▲18422.65 ▼0.45710.55 ▲27.1339.17 ▼14.76
Media Library /wp-admin/upload.php1,437 ▲344.32 ▲0.12103.46 ▼0.0169.77 ▲25.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • curiyo_search_page_id
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_term_by() in wp-content/plugins/curiyo-links/themefiles/curiyo-search-template.php:9
    • > PHP Notice
      Undefined index: keyword in wp-content/plugins/curiyo-links/themefiles/curiyo-search-template.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/curiyo-links/settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/curiyo-links/settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/curiyo-links/templates/settings.php:3

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: related content, plugin, curiyo

curiyo-links/curiyo-links.php Passed 13 tests

This is the main PHP file of "Curiyo Links" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Enrich your content with contextually relevant content.

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 plugin640 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP514085599
CSS13036
JavaScript1215

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/CuriyoIconBW32.png1.04KB1.53KB0.00%
images/CuriyoIconColor64.png2.61KB2.13KB▼ 18.46%
images/CuriyoIconBW16.png0.47KB0.70KB0.00%
images/CuriyoIconColor16.png0.52KB0.68KB0.00%
images/curiyo-icon-B-016.png0.65KB0.59KB▼ 8.93%